The following Code results in an Exception during decompression in Utilities.UnalignedCopy64:
byte[] uncompressed = new byte[100];
byte[] compressed = new byte[100];
Snappy.Sharp.SnappyCompressor snappyCompressor = new Snappy.Sharp.SnappyCompressor();
int countBytes = snappyCompressor.Compress( uncompressed, 0, 2, compressed, 0 );
Snappy.Sharp.SnappyDecompressor snappyDecompressor = new Snappy.Sharp.SnappyDecompressor();
// this call works
byte[] uncompressed2 = snappyDecompressor.Decompress( compressed, 0, countBytes );
// this call results in an Exception
snappyDecompressor.Decompress( compressed, 0, countBytes, uncompressed, 0, 100 );
The Exception occured with the Native-Implementation.
The following Code results in an Exception during decompression in Utilities.UnalignedCopy64:
The Exception occured with the Native-Implementation.