public final class Snappy extends Object
ByteBuf
encoded with Snappy compression into an
output ByteBuf
.
See snappy format.Constructor and Description |
---|
Snappy() |
Modifier and Type | Method and Description |
---|---|
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
- Copyright © 2008–2024 The Netty Project. All rights reserved.