private BufferedInputStream(BufferedInputStream.BufferManagerByteArray data, int bufferSize)
 {
     this.data = data;
     this.data.AddReference();
     this.innerStream = new MemoryStream(data.Bytes, 0, bufferSize);
 }
 public BufferedInputStream(byte[] bytes, int bufferSize, InternalBufferManager bufferManager)
 {
     this.data        = new BufferedInputStream.BufferManagerByteArray(bytes, bufferManager);
     this.innerStream = new MemoryStream(bytes, 0, bufferSize);
 }