Exemple #1
0
 /// <summary>Encodes the specified input.</summary>
 /// <param name="input">The input.</param>
 /// <param name="inputOffset">The input offset.</param>
 /// <param name="inputLength">Length of the input.</param>
 /// <param name="output">The output.</param>
 /// <param name="outputOffset">The output offset.</param>
 /// <param name="outputLength">Length of the output.</param>
 /// <returns>Number of bytes written.</returns>
 public static int Encode(
     byte[] input,
     int inputOffset,
     int inputLength,
     byte[] output,
     int outputOffset,
     int outputLength)
 {
     return(Lz4CodecEncodeFunctions.Encode(input, inputOffset, inputLength, output, outputOffset, outputLength));
 }
Exemple #2
0
 /// <summary>Encodes the specified input.</summary>
 /// <param name="input">The input.</param>
 /// <param name="inputOffset">The input offset.</param>
 /// <param name="inputLength">Length of the input.</param>
 /// <returns>Compressed buffer.</returns>
 public static byte[] Encode(byte[] input, int inputOffset, int inputLength)
 {
     return(Lz4CodecEncodeFunctions.Encode(input, inputOffset, inputLength));
 }