コード例 #1
0
ファイル: BufferStream.cs プロジェクト: ReinhardHsu/NetGain
 internal BufferStream(NetContext context, int maxLength)
 {
     if(context == null) throw new ArgumentNullException("context");
     this.context = context;
     this.maxLength = maxLength;
     buffers = context.GetCircularBuffer();
 }
コード例 #2
0
ファイル: BufferStream.cs プロジェクト: yaserOSource/NetGain
 internal BufferStream(NetContext context, int maxLength)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this.context   = context;
     this.maxLength = maxLength;
     buffers        = context.GetCircularBuffer();
 }