forked from LeenkxTeam/LNXSDK
		
	
		
			
	
	
		
			15 lines
		
	
	
		
			303 B
		
	
	
	
		
			Haxe
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			303 B
		
	
	
	
		
			Haxe
		
	
	
	
	
	
|  | 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); | ||
|  | 	} | ||
|  | } |