public ByteBlockBuffer() { LinkedList = new LinkedList <byte[]>(); LinkedList.AddFirst(GetBlock()); Reader = new ReadOperator(this); Writer = new WriteOperator(this); }
public ByteBlockBuffer(int size = 1 << 16) { Size = size; LinkedList = new LinkedList <byte[]>(); LinkedList.AddFirst(CreateBlock()); Reader = new ReadOperator(this); Writer = new WriteOperator(this); }