Exemple #1
0
 internal BufferStream(NetContext context, int maxLength)
 {
     if(context == null) throw new ArgumentNullException("context");
     this.context = context;
     this.maxLength = maxLength;
     buffers = context.GetCircularBuffer();
 }
Exemple #2
0
 internal BufferStream(NetContext context, int maxLength)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this.context   = context;
     this.maxLength = maxLength;
     buffers        = context.GetCircularBuffer();
 }