Package io.netty.handler.codec.redis
Class RedisCodecUtil
java.lang.Object
io.netty.handler.codec.redis.RedisCodecUtil
Utilities for codec-redis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static byte[]longToAsciiBytes(long value) (package private) static shortmakeShort(char first, char second) Returns ashortvalue using endian order.(package private) static byte[]shortToBytes(short value) Returns abyte[]ofshortvalue.
-
Constructor Details
-
RedisCodecUtil
private RedisCodecUtil()
-
-
Method Details
-
longToAsciiBytes
static byte[] longToAsciiBytes(long value) -
makeShort
static short makeShort(char first, char second) Returns ashortvalue using endian order. -
shortToBytes
static byte[] shortToBytes(short value) Returns abyte[]ofshortvalue. This is opposite ofmakeShort().
-