public abstract class MessageMeta extends Object
| 构造器和说明 |
|---|
MessageMeta() |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
buffer() |
void |
buffer(io.netty.buffer.ByteBuf buffer) |
void |
decode() |
void |
encode() |
protected boolean |
getBoolean()
读取bool数据
|
protected boolean[] |
getBooleanArray()
读取bool数组
|
protected ArrayList<Boolean> |
getBooleanList()
读取bool列表
|
protected byte |
getByte()
读取byte数据
|
protected byte[] |
getByteArray()
读取byte数组
|
protected ArrayList<byte[]> |
getByteArrayList()
读取byte[]列表
|
protected ArrayList<Byte> |
getByteList()
读取byte列表
|
protected char |
getChar()
读取char数据
|
protected char[] |
getCharArray()
读取char数组
|
protected ArrayList<Character> |
getCharList()
读取char列表
|
protected double |
getDouble()
读取double数据
|
protected double[] |
getDoubleArray()
读取double数组
|
protected ArrayList<Double> |
getDoubleList()
读取double列表
|
protected float |
getFloat()
读取float数据
|
protected float[] |
getFloatArray()
读取float数组
|
protected ArrayList<Float> |
getFloatList()
读取float列表
|
protected int |
getInt()
读取int数据
|
protected int[] |
getIntArray()
读取int数组
|
protected ArrayList<Integer> |
getIntList()
读取int列表
|
protected long |
getLong()
读取long数据
|
protected long[] |
getLongArray()
读取long数组
|
protected ArrayList<Long> |
getLongList()
读取long列表
|
protected <T extends MessageMeta> |
getMessageMeta(Class<T> clazz)
读取二进制元数据
|
protected <T extends MessageMeta> |
getMessageMetaArray(Class<T> clazz)
读取二进制元数据数组
|
protected <T extends MessageMeta> |
getMessageMetaList(Class<T> clazz)
读取二进制元数据列表
|
protected short |
getShort()
读取short数据
|
protected short[] |
getShortArray()
读取short数组
|
protected ArrayList<Short> |
getShortList()
读取short列表
|
protected String |
getString()
读取String类型
|
protected String[] |
getStringArray()
读取字符串数组
|
protected ArrayList<String> |
getStringList()
读取String列表
|
protected void |
putBoolean(boolean value)
写入bool数据
|
protected void |
putBooleanArray(boolean[] value)
写入bool数组
|
protected void |
putBooleanList(ArrayList<Boolean> value)
写入bool列表
|
protected void |
putByte(int value)
写入byte数据
|
protected void |
putByteArray(byte[] bytes)
写入byte数组
|
protected void |
putByteArrayList(ArrayList<byte[]> list)
写入byte[]列表
|
protected void |
putByteList(ArrayList<Byte> value)
写入byte列表
|
protected void |
putChar(int value)
写入char数据
|
protected void |
putCharArray(char[] value)
写入char数组
|
protected void |
putCharList(ArrayList<Character> value)
写入char列表
|
protected void |
putDouble(double value)
写入double数据
|
protected void |
putDoubleArray(double[] value)
写入double数组
|
protected void |
putDoubleList(ArrayList<Double> value)
写入double列表
|
protected void |
putFloat(float value)
写入float数据
|
protected void |
putFloatArray(float[] value)
写入float数组
|
protected void |
putFloatList(ArrayList<Float> value)
写入float列表
|
protected void |
putInt(int value)
写入int数据
|
protected void |
putIntArray(int[] value)
写入int数组
|
protected void |
putIntList(ArrayList<Integer> value)
写入int列表
|
protected void |
putLong(long value)
写入long数据
|
protected void |
putLongArray(long[] value)
写入long数组
|
protected void |
putLongList(ArrayList<Long> value)
写入long列表
|
protected void |
putMessageMeta(MessageMeta meta)
写入二进制元数据
|
protected <T extends MessageMeta> |
putMessageMetaArray(T[] value)
写入二进制元数据数组
|
protected <T extends MessageMeta> |
putMessageMetaList(ArrayList<T> value)
写入二进制元数据列表
|
protected void |
putShort(int value)
写入short数据
|
protected void |
putShortArray(short[] value)
写入short数组
|
protected void |
putShortList(ArrayList<Short> value)
写入short列表
|
protected void |
putString(String value)
写入String类型
|
protected void |
putStringArray(String[] value)
写入字符串数组
|
protected void |
putStringList(ArrayList<String> value)
写入String列表
|
public void buffer(io.netty.buffer.ByteBuf buffer)
public io.netty.buffer.ByteBuf buffer()
protected final void putMessageMeta(MessageMeta meta) throws Exception
buffer - meta - Exceptionprotected final <T extends MessageMeta> T getMessageMeta(Class<T> clazz) throws Exception
buffer - out - Exceptionprotected final <T extends MessageMeta> void putMessageMetaList(ArrayList<T> value) throws Exception
buffer - value - Exceptionprotected final <T extends MessageMeta> ArrayList<T> getMessageMetaList(Class<T> clazz) throws Exception
buffer - clazz - Exceptionprotected final <T extends MessageMeta> void putMessageMetaArray(T[] value) throws Exception
buffer - value - Exceptionprotected final <T extends MessageMeta> T[] getMessageMetaArray(Class<T> clazz) throws Exception
buffer - Exceptionprotected final void putString(String value)
buffer - value - protected final String getString()
buffer - protected final void putStringList(ArrayList<String> value)
buffer - value - protected final void putStringArray(String[] value)
buffer - value - protected final String[] getStringArray()
buffer - protected final void putLong(long value)
buffer - value - protected final long getLong()
buffer - protected final void putLongArray(long[] value)
buffer - value - protected final long[] getLongArray()
buffer - protected final void putInt(int value)
buffer - value - protected final int getInt()
buffer - protected final void putIntArray(int[] value)
buffer - value - protected final int[] getIntArray()
buffer - protected final void putByte(int value)
buffer - value - protected final byte getByte()
buffer - protected final void putByteArrayList(ArrayList<byte[]> list)
buffer - list - protected final ArrayList<byte[]> getByteArrayList()
buffer - protected final void putByteArray(byte[] bytes)
buffer - bytes - protected final byte[] getByteArray()
buffer - protected final void putBoolean(boolean value)
buffer - value - protected final boolean getBoolean()
buffer - protected final void putBooleanList(ArrayList<Boolean> value)
buffer - value - protected final void putBooleanArray(boolean[] value)
buffer - value - protected final boolean[] getBooleanArray()
buffer - protected final void putFloat(float value)
buffer - value - protected final float getFloat()
buffer - protected final void putFloatList(ArrayList<Float> value)
buffer - value - protected final void putFloatArray(float[] value)
buffer - value - protected final float[] getFloatArray()
buffer - protected final void putDouble(double value)
buffer - value - protected final double getDouble()
buffer - protected final void putDoubleList(ArrayList<Double> value)
buffer - value - protected final void putDoubleArray(double[] value)
buffer - value - protected final double[] getDoubleArray()
buffer - protected final void putShort(int value)
buffer - value - protected final short getShort()
buffer - protected final void putShortList(ArrayList<Short> value)
buffer - value - protected final void putShortArray(short[] value)
buffer - value - protected final short[] getShortArray()
buffer - protected final void putChar(int value)
buffer - value - protected final char getChar()
buffer - protected final void putCharList(ArrayList<Character> value)
buffer - value - protected final void putCharArray(char[] value)
buffer - value - protected final char[] getCharArray()
buffer - Copyright © 2017. All rights reserved.