public PerMessageCompressionExtension() { var bufferAllocator = new SegmentBufferManager(100, 8192, 1, true); _deflater = new DeflateCompression(bufferAllocator); }
public byte[] ProcessOutgoingMessagePayload(byte[] payload, int offset, int count) { return(DeflateCompression.Compress(payload, offset, count)); }
public PerMessageCompressionExtension() { _deflater = new DeflateCompression(); }