fun InputStream.asInput(pool: ObjectPool<ChunkBuffer> = ChunkBuffer.Pool): Input |
|
fun InputStream.readPacketAtLeast(n: Long): ByteReadPacket
Read a packet of at least n bytes or all remaining. Does fail if not enough bytes remaining. |
|
fun InputStream.readPacketAtMost(n: Long): ByteReadPacket
Read a packet of at most n bytes. Resulting packet could be empty however this function does always reads as much bytes as possible. |
|
fun InputStream.readPacketExact(n: Long): ByteReadPacket
Read a packet of exactly n bytes |