public class DeserializerHelpers extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_HEADER_IN_LENGTH |
static int |
MESSAGE_HEADER_OUT_LENGTH |
Constructor and Description |
---|
DeserializerHelpers() |
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.buffer.ChannelBuffer |
getBuffer() |
byte[] |
readData(int maxSize) |
double |
readDouble() |
short |
readInt16() |
int |
readInt32() |
long |
readInt64() |
byte |
readInt8() |
Message |
readMessage() |
MessageData |
readMessageData() |
void |
readPad(int size) |
String |
readString(int maxSize) |
int |
readUInt16() |
long |
readUInt32() |
long |
readUInt64() |
short |
readUInt8() |
void |
setBuffer(org.jboss.netty.buffer.ChannelBuffer buffer) |
public static final int MESSAGE_HEADER_IN_LENGTH
public static final int MESSAGE_HEADER_OUT_LENGTH
public org.jboss.netty.buffer.ChannelBuffer getBuffer()
public void setBuffer(org.jboss.netty.buffer.ChannelBuffer buffer)
public byte readInt8() throws IOException
IOException
public short readUInt8() throws IOException
IOException
public short readInt16() throws IOException
IOException
public int readUInt16() throws IOException
IOException
public int readInt32() throws IOException
IOException
public long readUInt32() throws IOException
IOException
public long readInt64() throws IOException
IOException
public long readUInt64() throws IOException
IOException
public double readDouble() throws IOException
IOException
public String readString(int maxSize) throws IOException
IOException
public byte[] readData(int maxSize) throws IOException
IOException
public void readPad(int size) throws IOException
IOException
public MessageData readMessageData() throws IOException
IOException
public Message readMessage() throws IOException, UnknownTemplateIdException
Copyright © 2012–2024 Onix Solutions. All rights reserved.