public class Snappy extends Object
ByteBuf
encoded with Snappy compression into an
output ByteBuf
.
See http://code.google.com/p/snappy/source/browse/trunk/format_description.txtConstructor and Description |
---|
Snappy() |
Modifier and Type | Method and Description |
---|---|
static int |
calculateChecksum(io.netty.buffer.ByteBuf data)
Computes the CRC32C checksum of the supplied data and performs the "mask" operation
on the computed checksum
|
static int |
calculateChecksum(io.netty.buffer.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(io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out) |
void |
encode(io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out,
int length) |
void |
reset() |
public void reset()
public void encode(io.netty.buffer.ByteBuf in, io.netty.buffer.ByteBuf out, int length)
public void decode(io.netty.buffer.ByteBuf in, io.netty.buffer.ByteBuf out)
public static int calculateChecksum(io.netty.buffer.ByteBuf data)
data
- The input data to calculate the CRC32C checksum ofpublic static int calculateChecksum(io.netty.buffer.ByteBuf data, int offset, int length)
data
- The input data to calculate the CRC32C checksum ofCopyright © 2008–2013 The Netty Project. All rights reserved.