SshPacketReader.take

ubyte[] take() @safe

Takes the next completed packet payload.

Returns

The payload bytes (a copy owned by the caller), or an empty

array when no complete packet is buffered yet.

Throws

SshPacketException on padding violations.