BufferWriter(DoubleBuffer buffer, UTF8Encoding encoding, LZ4CompressionStream outStream) : base(Stream.Null, encoding) { _baseStream = outStream; swapedBytes = 0; doubleBuffer = buffer; RefreshStatus(); _encoding = encoding; encoder = _encoding.GetEncoder(); }
public BufferWriter(DoubleBuffer doubleBuffer, LZ4CompressionStream outStream) : this(doubleBuffer, new UTF8Encoding(encoderShouldEmitUTF8Identifier : false, throwOnInvalidBytes : true), outStream) { }