ClientMsgProtobuf

open class ClientMsgProtobuf<BodyType : GeneratedMessage.Builder<BodyType>?> : AClientMsgProtobuf

Represents a protobuf backed client message.

Parameters

<BodyType>

The body type of this message.

Constructors

Link copied to clipboard
constructor(clazz: Class<out AbstractMessage>, msg: IPacketMsg)
Initializes a new instance of the ClientMsgProtobuf class.
constructor(clazz: Class<out AbstractMessage>, msg: IPacketMsg, payloadReserve: Int)
Initializes a new instance of the ClientMsgProtobuf class.
constructor(clazz: Class<out AbstractMessage>, eMsg: EMsg)
Initializes a new instance of the ClientMsgProtobuf class.
constructor(clazz: Class<out AbstractMessage>, eMsg: EMsg, payloadReserve: Int)
Initializes a new instance of the ClientMsgProtobuf class.
constructor(clazz: Class<out AbstractMessage>, eMsg: EMsg, msg: MsgBase<MsgHdrProtoBuf>)
Initializes a new instance of the ClientMsgProtobuf class.
constructor(clazz: Class<out AbstractMessage>, eMsg: EMsg, msg: MsgBase<MsgHdrProtoBuf>, payloadReserve: Int)
Initializes a new instance of the ClientMsgProtobuf class.

Properties

Link copied to clipboard
open var body: BodyType
Link copied to clipboard
open val header: HdrType

Functions

Link copied to clipboard
open fun deserialize(data: Array<Byte>)
Initializes this client message by deserializing the specified data.
Link copied to clipboard
open fun getMsgType(): EMsg
Gets the network message type of this client message.
Link copied to clipboard
Link copied to clipboard
open fun getProtoHeader(): SteammessagesBase.CMsgProtoBufHeader.Builder
Link copied to clipboard
open fun getSessionID(): Int
Gets the session id for this client message.
Link copied to clipboard
open fun getSourceJobID(): JobID
Gets the source job id for this client message.
Link copied to clipboard
open fun getSteamID(): SteamID
Gets the SteamID for this client message.
Link copied to clipboard
open fun getTargetJobID(): JobID
Gets the target job id for this client message.
Link copied to clipboard
open fun isProto(): Boolean
Gets a value indicating whether this client message is protobuf backed.
Link copied to clipboard
open fun readByte(): Byte
Link copied to clipboard
open fun readBytes(numBytes: Int): Array<Byte>
Link copied to clipboard
open fun readDouble(): Double
Link copied to clipboard
open fun readFloat(): Float
Link copied to clipboard
open fun readInt(): Int
Link copied to clipboard
open fun readLong(): Long
Link copied to clipboard
Link copied to clipboard
open fun readShort(): Short
Link copied to clipboard
open fun seek(offset: Long, seekOrigin: SeekOrigin): Long
Seeks within the payload to the specified offset.
Link copied to clipboard
open fun serialize(): Array<Byte>
serializes this client message instance to a byte array.
Link copied to clipboard
open fun setSessionID(sessionID: Int)
Sets the session id for this client message.
Link copied to clipboard
open fun setSourceJobID(jobID: JobID)
Sets the source job id for this client message.
Link copied to clipboard
open fun setSteamID(steamID: SteamID)
Sets the SteamID for this client message.
Link copied to clipboard
open fun setTargetJobID(jobID: JobID)
Sets the target job id for this client message.
Link copied to clipboard
open fun write(data: Byte)
open fun write(data: Array<Byte>)
open fun write(data: Double)
open fun write(data: Float)
open fun write(data: Int)
open fun write(data: String)
open fun write(data: Long)
open fun write(data: Short)
open fun write(data: String, charset: Charset)
Link copied to clipboard
open fun writeNullTermString(data: String)
open fun writeNullTermString(data: String, charset: Charset)