cleanup: Fixes bugs and cleans up code (#660)
This commit is contained in:
parent
1de0b656a9
commit
679e8100f4
99 changed files with 160 additions and 346 deletions
|
|
@ -9,7 +9,7 @@ namespace Server
|
|||
{
|
||||
private static readonly INativeReader m_NativeReader;
|
||||
|
||||
static NativeReader() => m_NativeReader = Core.Unix ? (INativeReader)new NativeReaderUnix() : new NativeReaderWin32();
|
||||
static NativeReader() => m_NativeReader = Core.Unix ? new NativeReaderUnix() : new NativeReaderWin32();
|
||||
|
||||
public static unsafe int Read(FileStream source, void* buffer, int length) =>
|
||||
m_NativeReader.Read(source, buffer, length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue