ExtendedInfoFilter

fun interface ExtendedInfoFilter

Extended info filter provides the protocol with a strategy for how to handle the packet capacity limitations, as it is all too easy to fly past the 40kb limitation in extreme scenarios and benchmarks. This interface is responsible for ensuring that the extended info blocks do not exceed the 40kb limitation. In order to achieve this, all necessary information is provided within the accept function. It should be noted that at least 1 byte of space is necessary per each remaining avatar at the very least, as we write the flag as zero in those extreme scenarios.

Inheritors

Functions

Link copied to clipboard
abstract fun accept(writableBytes: Int, constantFlag: Int, remainingAvatars: Int, previouslyObserved: Boolean): Boolean

Whether to accept writing the extended info blocks for the next avatar.