readDirect
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 ByteReadPacket.readDirect(size: Int, block: (ByteBuffer) -> Unit)
Content copied to clipboard
inline fun Buffer.readDirect(block: (<ERROR CLASS><<ERROR CLASS>>) -> Int): Int
Content copied to clipboard