public class Snappy extends Object
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)
data
- The input data to calculate the CRC32C checksum ofpublic static int calculateChecksum(ByteBuf data, int offset, int length)
data
- The input data to calculate the CRC32C checksum ofCopyright © 2008–2013 The Netty Project. All rights reserved.