ClientMsg

constructor(bodyType: Class<out BodyType>)

Initializes a new instance of the ClientMsg class.

Parameters

bodyType

body type


constructor(bodyType: Class<out BodyType>, payloadReserve: Int)

Initializes a new instance of the ClientMsg class.

Parameters

bodyType

body type

payloadReserve

The number of bytes to initialize the payload capacity to.


constructor(bodyType: Class<out BodyType>, msg: MsgBase<ExtendedClientMsgHdr>)

Initializes a new instance of the ClientMsg class. This a reply constructor.

Parameters

bodyType

body type

msg

The message that this instance is a reply for.


constructor(bodyType: Class<out BodyType>, msg: MsgBase<ExtendedClientMsgHdr>, payloadReserve: Int)

Initializes a new instance of the ClientMsg class. This a reply constructor.

Parameters

bodyType

body type

msg

The message that this instance is a reply for.

payloadReserve

The number of bytes to initialize the payload capacity to.


constructor(bodyType: Class<out BodyType>, msg: IPacketMsg)

Initializes a new instance of the ClientMsg class. This a receive constructor.

Parameters

bodyType

body type

msg

The packet message to build this client message from.