Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -52,7 +52,7 @@ namespace Server
|
|||
options |= FileOptions.Asynchronous;
|
||||
|
||||
#if MONO
|
||||
return new FileStream( path, mode, access, share, BufferSize, options );
|
||||
return new FileStream( path, mode, access, share, BufferSize, options );
|
||||
#else
|
||||
if (Unbuffered)
|
||||
options |= NoBuffering;
|
||||
|
|
@ -74,10 +74,8 @@ namespace Server
|
|||
private SafeFileHandle fileHandle;
|
||||
|
||||
public UnbufferedFileStream(SafeFileHandle fileHandle, FileAccess access, int bufferSize, bool isAsync)
|
||||
: base(fileHandle, access, bufferSize, isAsync)
|
||||
{
|
||||
: base(fileHandle, access, bufferSize, isAsync) =>
|
||||
this.fileHandle = fileHandle;
|
||||
}
|
||||
|
||||
public override void Write(byte[] array, int offset, int count)
|
||||
{
|
||||
|
|
@ -85,10 +83,8 @@ namespace Server
|
|||
}
|
||||
|
||||
public override IAsyncResult BeginWrite(byte[] array, int offset, int numBytes, AsyncCallback userCallback,
|
||||
object stateObject)
|
||||
{
|
||||
return base.BeginWrite(array, offset, BufferSize, userCallback, stateObject);
|
||||
}
|
||||
object stateObject) =>
|
||||
base.BeginWrite(array, offset, BufferSize, userCallback, stateObject);
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue