send

abstract suspend fun send(packet: PlayerPacket?): Boolean

Offers a packet. A null packet starts the drain that flushes the decoder's internal delay.

Return

false when the decoder did not accept the packet and the caller must receive before offering again. A platform codec may transiently return null from that receive while its internal worker makes progress. The caller must retry the same packet, never discard it.