T
- The header type for this client message.public abstract class MsgBase<T extends ISteamSerializableHeader> extends AMsgBase implements IClientMsg
Modifier and Type | Field and Description |
---|---|
protected T |
header
Gets the header for this message type.
|
private boolean |
isProto
true if this instance is protobuf backed; otherwise, false.
|
private EMsg |
msgType
The network message type.
|
protected int |
sessionID
The session id.
|
protected JobID |
sourceJobID
The source job id.
|
protected SteamID |
steamID
The
SteamID |
protected JobID |
targetJobID
The target job id.
|
Constructor and Description |
---|
MsgBase(Class<T> clazz) |
MsgBase(Class<T> clazz,
int payloadReserve)
Initializes a new instance of the
MsgBase class. |
Modifier and Type | Method and Description |
---|---|
abstract void |
deSerialize(byte[] data)
Initializes this client message by deserializing the specified data.
|
abstract byte[] |
serialize()
serializes this client message instance to a byte array.
|
write, write, write, write, writeNullTermString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMsgType, getSessionID, getSourceJobID, getSteamID, getTargetJobID, isProto, setSessionID, setSourceJobID, setSteamID, setTargetJobID
private boolean isProto
private EMsg msgType
protected int sessionID
protected JobID targetJobID
protected JobID sourceJobID
protected T extends ISteamSerializableHeader header
public abstract byte[] serialize() throws IOException
serialize
in interface IClientMsg
IOException
public abstract void deSerialize(byte[] data) throws IOException
deSerialize
in interface IClientMsg
data
- The data representing a client message.IOException
Copyright © 2012. All Rights Reserved.