forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
14
Kha/Backends/HTML5/kha/arrays/ByteBuffer.hx
Normal file
14
Kha/Backends/HTML5/kha/arrays/ByteBuffer.hx
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user