final int compressedLength = view.getInt();
byte compressedBytes[] = new byte[compressedLength ];
view.get(compressedBytes);
final CRC32 crc = new CRC32();
crc.update(compressedBytes);
final int actualCRC = (int)crc.getValue();
if (actualCRC != originalCRC) {
throw new RuntimeException("CRC mismatch");
}