Example #1
0
 public bool CompressValue(ref ByteBuffer data)
 {
     if (data.Length < 32)
     {
         return(false);
     }
     return(SnappyCompress.TryCompress(ref data, 80));
 }
Example #2
0
 public bool CompressValue(ref ReadOnlySpan <byte> data)
 {
     if (data.Length < 32)
     {
         return(false);
     }
     return(SnappyCompress.TryCompress(ref data, 80));
 }
Example #3
0
 public bool CompressKey(ref ByteBuffer data)
 {
     return(SnappyCompress.TryCompress(ref data, 80));
 }
Example #4
0
 public bool CompressKey(ref ReadOnlySpan <byte> data)
 {
     return(SnappyCompress.TryCompress(ref data, 80));
 }