allocAndWrite

fun allocAndWrite(streamId: Int, bytes: ByteArray): Int