}
public static BlockTrailer readBlockTrailer(Slice slice)
{
SliceInput sliceInput = slice.input();
CompressionType compressionType = CompressionType.getCompressionTypeByPersistentId(sliceInput.readUnsignedByte());
int crc32c = sliceInput.readInt();
return new BlockTrailer(compressionType, crc32c);
}
public static Slice writeBlockTrailer(BlockTrailer blockTrailer)