Class Snappy
java.lang.Object
io.netty.handler.codec.compression.Snappy
Uncompresses an input
ByteBuf encoded with Snappy compression into an
output ByteBuf.
See snappy format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstatic short[]getHashTableFastThreadLocalArrayFill(int hashTableSize) Returns a short[] from a FastThreadLocal, zeroing for correctness creating a new one and resizing it if necessaryvoidreset()static Snappy
-
Constructor Details
-
Snappy
public Snappy()
-
-
Method Details
-
withHashTableReuse
-
reset
public void reset() -
encode
-
getHashTableFastThreadLocalArrayFill
public static short[] getHashTableFastThreadLocalArrayFill(int hashTableSize) Returns a short[] from a FastThreadLocal, zeroing for correctness creating a new one and resizing it if necessary- Parameters:
hashTableSize-- Returns:
- An appropriately sized empty hashtable
-
decode
-