Exemple #1
0
 /// <summary>Unwraps the specified compressed buffer.</summary>
 /// <param name="inputBuffer">The input buffer.</param>
 /// <param name="inputOffset">The input offset.</param>
 /// <returns>Uncompressed buffer.</returns>
 /// <exception cref="System.ArgumentException">
 ///     inputBuffer size is invalid or inputBuffer size is invalid or has been corrupted
 /// </exception>
 public static byte[] Unwrap(byte[] inputBuffer, int inputOffset = 0)
 {
     return(Lz4CodecWrapFunctions.Unwrap(inputBuffer, inputOffset));
 }
Exemple #2
0
 /// <summary>Compresses and wraps given input byte buffer.</summary>
 /// <param name="inputBuffer">The input buffer.</param>
 /// <param name="inputOffset">The input offset.</param>
 /// <param name="inputLength">Length of the input.</param>
 /// <returns>Compressed buffer.</returns>
 /// <exception cref="System.ArgumentException">inputBuffer size of inputLength is invalid</exception>
 public static byte[] Wrap(byte[] inputBuffer, int inputOffset = 0, int inputLength = int.MaxValue)
 {
     return(Lz4CodecWrapFunctions.Wrap(inputBuffer, inputOffset, inputLength));
 }