public static SnappyStatus snappy_validate_compressed_buffer(byte[] input, int input_offset, int input_length) { using (var pinnedInput = new PinnedBuffer(input, input_offset)) { return(Snappy64NativeMethods.snappy_validate_compressed_buffer(pinnedInput.IntPtr, (ulong)input_length)); } }
public static SnappyStatus snappy_validate_compressed_buffer(IntPtr input, int input_length) { if (__is64BitProcess) { return(Snappy64NativeMethods.snappy_validate_compressed_buffer(input, (ulong)input_length)); } else { return(Snappy32NativeMethods.snappy_validate_compressed_buffer(input, (uint)input_length)); } }