-
- 类型参数:
T
- 泛型
public interface MessageCoder<T>
将MessageRecord.content内容加解密详情见: https://redkale.org
- 从以下版本开始:
- 2.1.0
- 作者:
- zhangjx
-
-
方法概要
所有方法 静态方法 实例方法 抽象方法 修饰符和类型 方法 说明 byte
ctype()
T
decode(byte[] data)
static Serializable
decodeUserid(ByteBuffer buffer)
byte[]
encode(T data)
static byte[]
encodeUserid(Serializable value)
static String
getBigString(ByteBuffer buffer)
static byte[]
getBytes(byte[] value)
static byte[]
getBytes(String value)
static Map<String,Serializable>
getSeriMap(ByteBuffer buffer)
static byte[]
getSeriMapBytes(Map<String,Serializable> map)
static String
getSmallString(ByteBuffer buffer)
static Map<String,String>
getStringMap(ByteBuffer buffer)
static byte[]
getStringMapBytes(Map<String,String> map)
static void
putBigString(ByteBuffer buffer, String value)
static void
putSmallString(ByteBuffer buffer, String value)
-
-
-
方法详细资料
-
encode
byte[] encode(T data)
-
decode
T decode(byte[] data)
-
ctype
byte ctype()
-
encodeUserid
static byte[] encodeUserid(Serializable value)
-
decodeUserid
static Serializable decodeUserid(ByteBuffer buffer)
-
getBytes
static byte[] getBytes(byte[] value)
-
getBytes
static byte[] getBytes(String value)
-
getStringMap
static Map<String,String> getStringMap(ByteBuffer buffer)
-
getSeriMapBytes
static byte[] getSeriMapBytes(Map<String,Serializable> map)
-
getSeriMap
static Map<String,Serializable> getSeriMap(ByteBuffer buffer)
-
putBigString
static void putBigString(ByteBuffer buffer, String value)
-
getBigString
static String getBigString(ByteBuffer buffer)
-
putSmallString
static void putSmallString(ByteBuffer buffer, String value)
-
getSmallString
static String getSmallString(ByteBuffer buffer)
-
-