PartialJs5GroupRequest

A class for tracking partial JS5 group requests, allowing us to feed the groups sections at a time, instead of the full thing - this is due to the groups varying greatly in size and naively sending a group could open it up for attacks.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var block: ByteBuf?

the current block that is being written

Link copied to clipboard

the current number of bytes written of this block

Functions

Link copied to clipboard

Gets the length of the next block, capped to blockLength, and increments the current progress by that value.

Link copied to clipboard

Checks whether this group has been fully written over to the client

Link copied to clipboard
fun set(block: ByteBuf)

Sets a new block to be written to the client, resetting the progress and updating the length to that of this block.