withMemory

fun <T> withMemory(size: Int, block: (ByteArray) -> T): T