LNXSDK/Kha/Backends/Krom/kha/arrays/ByteBuffer.hx

15 lines
303 B
Haxe
Raw Normal View History

2025-01-22 16:18:30 +01:00
package kha.arrays;
import js.lib.ArrayBuffer;
@:forward
abstract ByteBuffer(ArrayBuffer) from ArrayBuffer to ArrayBuffer {
public static function create(length: Int): ByteBuffer {
return new ByteBuffer(length);
}
function new(length: Int) {
this = new ArrayBuffer(length);
}
}