Js5ByteBufGroupResponse

class Js5ByteBufGroupResponse(buffer: ByteBuf, val offset: Int, val limit: Int) : DefaultByteBufHolder, Js5GroupResponse.Js5GroupResponseType

A prepared ByteBuf based JS5 group response. The byte buffer here is in the exact format that the client expects, starting with the archive and group id, with the blocks separated by 0xFF terminators. This implementation does support XOR encryption.

Parameters

buffer

the byte buffer containing all the data to be written over to the client. The buffer's writer index and reference count will not be changed by the JS5 implementation, as the buffers are intended to be written to numerous recipients.

Constructors

Link copied to clipboard
constructor(buffer: ByteBuf, offset: Int, limit: Int)

Properties

Link copied to clipboard
open override val limit: Int
Link copied to clipboard
open override val offset: Int

the reader index offset, allowing us to only send a slice of the buffer

Functions

Link copied to clipboard
open override fun content(): ByteBuf
Link copied to clipboard
open override fun copy(): ByteBufHolder
Link copied to clipboard
open override fun duplicate(): ByteBufHolder
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun refCnt(): Int
Link copied to clipboard
open override fun release(): Boolean
open override fun release(p0: Int): Boolean
Link copied to clipboard
open override fun replace(p0: ByteBuf): ByteBufHolder
Link copied to clipboard
open override fun retain(): ByteBufHolder
open override fun retain(p0: Int): ByteBufHolder
Link copied to clipboard
open override fun retainedDuplicate(): ByteBufHolder
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun touch(): ByteBufHolder
open override fun touch(p0: Any): ByteBufHolder