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 short
makeShort
(char first, char second) Returns ashort
value using endian order.(package private) static byte[]
shortToBytes
(short value) Returns abyte[]
ofshort
value.
-
Constructor Details
-
RedisCodecUtil
private RedisCodecUtil()
-
-
Method Details
-
longToAsciiBytes
static byte[] longToAsciiBytes(long value) -
makeShort
static short makeShort(char first, char second) Returns ashort
value using endian order. -
shortToBytes
static byte[] shortToBytes(short value) Returns abyte[]
ofshort
value. This is opposite ofmakeShort()
.
-