aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IFileDescriptor.cs
blob: 6c00d5e1180e3f8982b9b63556227ce958464a50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using Ryujinx.HLE.HOS.Services.Sockets.Bsd.Types;
using System;

namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd
{
    interface IFileDescriptor : IDisposable
    {
        bool Blocking { get; set; }
        int Refcount { get; set; }

        LinuxError Read(out int readSize, Span<byte> buffer);

        LinuxError Write(out int writeSize, ReadOnlySpan<byte> buffer);
    }
}