intbox debugger is back

This commit is contained in:
minjaesong
2019-06-09 01:26:14 +09:00
parent 48b4a4455b
commit 6e0fe95e76
7 changed files with 34 additions and 23 deletions

View File

@@ -38,7 +38,6 @@ open class BlockLayer(val width: Int, val height: Int) : Disposable {
* TL;DR: LITTLE ENDIAN PLEASE
*/
constructor(width: Int, height: Int, data: ByteArray) : this(width, height) {
unsafe.allocateMemory(width * height * BYTES_PER_BLOCK.toLong())
data.forEachIndexed { index, byte -> unsafe.putByte(layerPtr + index, byte) }
unsafeArrayInitialised = true
}