Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -196,13 +196,7 @@ namespace Server
|
|||
private bool PrefixStrings;
|
||||
private Stream m_File;
|
||||
|
||||
protected virtual int BufferSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return 64 * 1024;
|
||||
}
|
||||
}
|
||||
protected virtual int BufferSize => 64 * 1024;
|
||||
|
||||
private byte[] m_Buffer;
|
||||
|
||||
|
|
@ -239,13 +233,7 @@ namespace Server
|
|||
|
||||
private long m_Position;
|
||||
|
||||
public override long Position
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Position + m_Index;
|
||||
}
|
||||
}
|
||||
public override long Position => m_Position + m_Index;
|
||||
|
||||
public Stream UnderlyingStream
|
||||
{
|
||||
|
|
@ -970,13 +958,7 @@ namespace Server
|
|||
m_File.Close();
|
||||
}
|
||||
|
||||
public long Position
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_File.BaseStream.Position;
|
||||
}
|
||||
}
|
||||
public long Position => m_File.BaseStream.Position;
|
||||
|
||||
public long Seek( long offset, SeekOrigin origin )
|
||||
{
|
||||
|
|
@ -1402,7 +1384,7 @@ namespace Server
|
|||
public sealed class AsyncWriter : GenericWriter
|
||||
{
|
||||
private static int m_ThreadCount = 0;
|
||||
public static int ThreadCount { get { return m_ThreadCount; } }
|
||||
public static int ThreadCount => m_ThreadCount;
|
||||
|
||||
private int BufferSize;
|
||||
|
||||
|
|
@ -1500,10 +1482,7 @@ namespace Server
|
|||
|
||||
public MemoryStream MemStream
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Mem;
|
||||
}
|
||||
get => m_Mem;
|
||||
set
|
||||
{
|
||||
if ( m_Mem.Length > 0 )
|
||||
|
|
@ -1523,13 +1502,7 @@ namespace Server
|
|||
m_Closed = true;
|
||||
}
|
||||
|
||||
public override long Position
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_CurPos;
|
||||
}
|
||||
}
|
||||
public override long Position => m_CurPos;
|
||||
|
||||
public override void Write( IPAddress value )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue