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