public final class Snappy extends Object
Uncompresses an input ByteBuf
encoded with Snappy compression into an output ByteBuf
.
See snappy format.
Constructor and Description |
---|
Snappy() |
Modifier and Type | Method and Description |
---|---|
static int |
calculateChecksum(ByteBuf data)
Computes the CRC32C checksum of the supplied data and performs the “mask” operation on the computed checksum
|
static int |
calculateChecksum(ByteBuf data,
int offset,
int length)
Computes the CRC32C checksum of the supplied data and performs the “mask” operation on the computed checksum
|
void |
decode(ByteBuf in,
ByteBuf out) |
void |
encode(ByteBuf in,
ByteBuf out,
int length) |
void |
reset() |
public void reset()
public static int calculateChecksum(ByteBuf data)
Computes the CRC32C checksum of the supplied data and performs the “mask” operation on the computed checksum
data
- The input data to calculate the CRC32C checksum ofpublic static int calculateChecksum(ByteBuf data, int offset, int length)
Computes the CRC32C checksum of the supplied data and performs the “mask” operation on the computed checksum
data
- The input data to calculate the CRC32C checksum ofCopyright © 2018 Couchbase, Inc.. All rights reserved.