AbstractMsgBase

abstract class AbstractMsgBase

This class provides a payload backing to client messages.

Inheritors

Constructors

Link copied to clipboard
constructor()
Initializes a new instance of the AbstractMsgBase class.
constructor(payloadReserve: Int)
Initializes a new instance of the AbstractMsgBase class.

Functions

Link copied to clipboard
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 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)