ChachaPolyPacketReader.bytesNeeded

size_t bytesNeeded() @property const pure nothrow @nogc @safe

Returns

how many more wire bytes the current packet still needs,

or 0 when a full packet is buffered.