[Modify] Use readonly

This commit is contained in:
sta 2021-02-21 22:07:19 +09:00
parent 1d20168915
commit 00929e01c9

View File

@ -46,7 +46,7 @@ namespace WebSocketSharp.Net
{
#region Private Fields
private const int _bufferLength = 8192;
private static readonly int _bufferLength;
private HttpListenerContext _context;
private ChunkStream _decoder;
private bool _disposed;
@ -54,6 +54,15 @@ namespace WebSocketSharp.Net
#endregion
#region Static Constructor
static ChunkedRequestStream ()
{
_bufferLength = 8192;
}
#endregion
#region Internal Constructors
internal ChunkedRequestStream (