inline fun ChunkBuffer.readDirect(block: (ByteBuffer) -> Unit): Int
Apply block function on a ByteBuffer of readable bytes. The block function should return number of consumed bytes.
Return
number of bytes consumed
inline fun Buffer.readDirect(block: (ByteBuffer) -> Unit): Int
inline fun ByteReadPacket.readDirect(size: Int, block: (ByteBuffer) -> Unit): Unit
inline fun AbstractInput.readDirect(size: Int, block: (ByteBuffer) -> Unit): Unit