| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 | /* * Copyright (C)2005-2019 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */package hl.types;@:keepclass ArrayAccess {	public function getDyn(pos:Int):Dynamic {		throw "Not implemented";		return 0;	}	public function setDyn(pos:Int, v:Dynamic) {		throw "Not implemented";	}	public function blit(pos:Int, src:ArrayAccess, srcpos:Int, len:Int):Void {		throw "Not implemented";	}}@:keepclass ArrayBase extends ArrayAccess {	public var length(default, null):Int;	public function pushDyn(v:Dynamic):Int {		throw "Not implemented";		return 0;	}	public function popDyn():Null<Dynamic> {		throw "Not implemented";		return null;	}	public function shiftDyn():Null<Dynamic> {		throw "Not implemented";		return null;	}	public function unshiftDyn(v:Dynamic):Void {		throw "Not implemented";	}	public function insertDyn(pos:Int, v:Dynamic):Void {		throw "Not implemented";	}	public function containsDyn(v:Dynamic):Bool {		throw "Not implemented";		return false;	}	public function removeDyn(v:Dynamic):Bool {		throw "Not implemented";		return false;	}	public function sortDyn(f:Dynamic->Dynamic->Int):Void {		throw "Not implemented";	}	public function slice(pos:Int, ?end:Int):ArrayBase {		throw "Not implemented";		return null;	}	public function splice(pos:Int, len:Int):ArrayBase {		throw "Not implemented";		return null;	}	public function join(sep:String):String {		throw "Not implemented";		return null;	}	public function reverse() {		throw "Not implemented";	}	public function resize(len:Int) {		throw "Not implemented";	}	public function toString():String {		throw "Not implemented";		return null;	}	function __cast(t:Type):Dynamic {		if (t == Type.get((null : ArrayDyn)))			return ArrayDyn.alloc(this, false);		return null;	}	function isArrayObj() {		return false;	}	public static function allocI32(bytes:BytesAccess<Int>, length:Int) @:privateAccess {		var a:ArrayBytes.ArrayI32 = untyped $new(ArrayBytes.ArrayI32);		a.length = length;		a.bytes = bytes;		a.size = length;		return a;	}	public static function allocUI16(bytes:BytesAccess<UI16>, length:Int) @:privateAccess {		var a:ArrayBytes.ArrayUI16 = untyped $new(ArrayBytes.ArrayUI16);		a.length = length;		a.bytes = bytes;		a.size = length;		return a;	}	public static function allocF32(bytes:BytesAccess<F32>, length:Int) @:privateAccess {		var a:ArrayBytes.ArrayF32 = untyped $new(ArrayBytes.ArrayF32);		a.length = length;		a.bytes = bytes;		a.size = length;		return a;	}	public static function allocF64(bytes:BytesAccess<Float>, length:Int) @:privateAccess {		var a:ArrayBytes.ArrayF64 = untyped $new(ArrayBytes.ArrayF64);		a.length = length;		a.bytes = bytes;		a.size = length;		return a;	}}
 |