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