ByteReadPacket

expect fun ByteReadPacket(
    array: ByteArray,
    offset: Int = 0,
    length: Int = array.size,
    block: (ByteArray) -> Unit
): ByteReadPacket
inline fun ByteReadPacket(
    array: ByteArray,
    offset: Int = 0,
    length: Int = array.size
): ByteReadPacket
fun ByteReadPacket(
    bb: ByteBuffer,
    release: (ByteBuffer) -> Unit = {}
): ByteReadPacket