Class RedisCodecUtil

java.lang.Object
io.netty.handler.codec.redis.RedisCodecUtil

final class RedisCodecUtil extends java.lang.Object
Utilities for codec-redis.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static byte[]
    longToAsciiBytes(long value)
     
    (package private) static short
    makeShort(char first, char second)
    Returns a short value using endian order.
    (package private) static byte[]
    shortToBytes(short value)
    Returns a byte[] of short value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedisCodecUtil

      private RedisCodecUtil()
  • Method Details

    • longToAsciiBytes

      static byte[] longToAsciiBytes(long value)
    • makeShort

      static short makeShort(char first, char second)
      Returns a short value using endian order.
    • shortToBytes

      static byte[] shortToBytes(short value)
      Returns a byte[] of short value. This is opposite of makeShort().