public bool CompressValue(ref ByteBuffer data) { if (data.Length < 32) { return(false); } return(SnappyCompress.TryCompress(ref data, 80)); }
public bool CompressValue(ref ReadOnlySpan <byte> data) { if (data.Length < 32) { return(false); } return(SnappyCompress.TryCompress(ref data, 80)); }
public bool CompressKey(ref ByteBuffer data) { return(SnappyCompress.TryCompress(ref data, 80)); }
public bool CompressKey(ref ReadOnlySpan <byte> data) { return(SnappyCompress.TryCompress(ref data, 80)); }