Пример #1
0
 public ByteBlockBuffer()
 {
     LinkedList = new LinkedList <byte[]>();
     LinkedList.AddFirst(GetBlock());
     Reader = new ReadOperator(this);
     Writer = new WriteOperator(this);
 }
Пример #2
0
 public ByteBlockBuffer(int size = 1 << 16)
 {
     Size       = size;
     LinkedList = new LinkedList <byte[]>();
     LinkedList.AddFirst(CreateBlock());
     Reader = new ReadOperator(this);
     Writer = new WriteOperator(this);
 }