Example #1
0
 public static unsafe int Decode(byte[] source, byte[] target, int sourceLength)
 {
     fixed(byte *sourceP = source)
     fixed(byte *targetP = target)
     return(LZ4_64.LZ4_decompress_safe(sourceP, targetP, sourceLength, target.Length));
 }
Example #2
0
 public static unsafe int Decode(byte *source, byte *target, int sourceLength, int targetLength) =>
 LZ4_64.LZ4_decompress_safe(source, target, sourceLength, targetLength);