public final class Snappy
extends java.lang.Object
ByteBuf
encoded with Snappy compression into an
output ByteBuf
.
See snappy format.构造器和说明 |
---|
Snappy() |
限定符和类型 | 方法和说明 |
---|---|
void |
decode(ByteBuf in,
ByteBuf out) |
void |
encode(ByteBuf in,
ByteBuf out,
int length) |
static short[] |
getHashTableFastThreadLocalArrayFill(int hashTableSize)
Returns a short[] from a FastThreadLocal, zeroing for correctness
creating a new one and resizing it if necessary
|
void |
reset() |
static Snappy |
withHashTableReuse() |
public static Snappy withHashTableReuse()
public void reset()
public static short[] getHashTableFastThreadLocalArrayFill(int hashTableSize)
hashTableSize
-