Package-level declarations
Properties
For streaming input there is no reliable way to detect it without triggering bytes population from the underlying source. Consider using Input.endOfInput or use ByteReadPacket instead.
Functions
Build a byte packet in block lambda. Creates a temporary builder and releases it in case of failure
Copy all bytes to the output. Depending on actual input and output implementation it could be zero-copy or copy byte per byte. All regular types such as ByteReadPacket, BytePacketBuilder, Input and Output are always optimized so no bytes will be copied.
Read exactly n bytes (consumes all remaining if n is not specified but up to Int.MAX_VALUE bytes). Does fail if not enough bytes remaining.
Read the specified number of bytes specified (optional, read all remaining by default)
Read exactly charactersCount characters interpreting bytes in the specified charset.
Write source buffer content moving its position.