Esempio n. 1
0
 public static SnappyStatus snappy_validate_compressed_buffer(byte[] input, int input_offset, int input_length)
 {
     using (var pinnedInput = new PinnedBuffer(input, input_offset))
     {
         return(SnappyNativeMethodsAdapter.snappy_validate_compressed_buffer(pinnedInput.IntPtr, input_length));
     }
 }
Esempio n. 2
0
 public static SnappyStatus snappy_uncompress(byte[] input, int input_offset, int input_length, byte[] output, int output_offset, ref int output_length)
 {
     using (var pinnedInput = new PinnedBuffer(input, input_offset))
         using (var pinnedOutput = new PinnedBuffer(output, output_offset))
         {
             return(SnappyNativeMethodsAdapter.snappy_uncompress(pinnedInput.IntPtr, input_length, pinnedOutput.IntPtr, ref output_length));
         }
 }
Esempio n. 3
0
 public static int snappy_max_compressed_length(int input_length)
 {
     return(SnappyNativeMethodsAdapter.snappy_max_compressed_length(input_length));
 }