Skip to content

Instantly share code, notes, and snippets.

@z-ohnami
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z-ohnami/11218999 to your computer and use it in GitHub Desktop.
Save z-ohnami/11218999 to your computer and use it in GitHub Desktop.
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