21 lines
441 B
Haxe
Raw Normal View History

2025-01-22 16:18:30 +01:00
package kha.arrays;
@:unreflective
@:structAccess
@:include("cpp_bytearray.h")
@:native("bytearray")
extern class ByteBuffer {
@:native("bytearray")
public static function create(): ByteBuffer;
public function alloc(length: Int): Void;
public function addRef(): Void;
public function subRef(): Void;
public function get(index: Int): FastFloat;
public function set(index: Int, value: FastFloat): FastFloat;
}