Package-level declarations

Functions

Link copied to clipboard
fun InputStream.asInput(pool: ObjectPool<ChunkBuffer> = ChunkBuffer.Pool): Input
Link copied to clipboard
Link copied to clipboard

Creates InputStream adapter to the packet

Link copied to clipboard

Creates OutputStream adapter to the builder

Link copied to clipboard

Creates Reader from the byte packet that decodes UTF-8 characters

Link copied to clipboard

Read a packet of at least n bytes or all remaining. Does fail if not enough bytes remaining.

Link copied to clipboard

Read a packet of at most n bytes. Resulting packet could be empty however this function always reads as much bytes as possible.

Link copied to clipboard

Read a packet of exactly n bytes

Link copied to clipboard

Write the whole packet to the stream

Write the whole packet to the stream once it is built via builder lambda

Link copied to clipboard

Creates Writer that encodes all characters in UTF-8 encoding