Skip to content

Instantly share code, notes, and snippets.

@z-ohnami z-ohnami/gist:11218999
Last active Aug 29, 2015

Embed
What would you like to do?
Fix OpenFL part 2
// /usr/lib/haxe/lib/openfl-native/1,3,0/flash/utils/IDataInput.hx
package flash.utils;
interface IDataInput {
public var bytesAvailable (get, null):Int;
public var endian (get, set):String;
public function readBoolean ():Bool;
public function readByte ():Int;
public function readBytes (data:ByteArray, offset:Int = 0, length:Int = 0):Void;
//modify !!
//public function readDouble ():Float;
public function readDouble (position:Int):Float;
//modify !!
//public function readFloat ():Float;
public function readFloat (position:Int):Float;
public function readInt ():Int;
public function readShort ():Int;
public function readUnsignedByte ():Int;
public function readUnsignedInt ():Int;
public function readUnsignedShort ():Int;
public function readUTF ():String;
public function readUTFBytes (length:Int):String;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.