2
0

ObjectInput.hx 1.0 KB

123456789101112131415161718192021222324252627
  1. package flash.utils;
  2. extern class ObjectInput implements IDataInput {
  3. @:flash.property var bytesAvailable(get,never) : UInt;
  4. @:flash.property var endian(get,set) : Endian;
  5. @:flash.property var objectEncoding(get,set) : UInt;
  6. function new() : Void;
  7. private function get_bytesAvailable() : UInt;
  8. private function get_endian() : Endian;
  9. private function get_objectEncoding() : UInt;
  10. function readBoolean() : Bool;
  11. function readByte() : Int;
  12. function readBytes(bytes : ByteArray, offset : UInt = 0, length : UInt = 0) : Void;
  13. function readDouble() : Float;
  14. function readFloat() : Float;
  15. function readInt() : Int;
  16. function readMultiByte(length : UInt, charSet : String) : String;
  17. function readObject() : Dynamic;
  18. function readShort() : Int;
  19. function readUTF() : String;
  20. function readUTFBytes(length : UInt) : String;
  21. function readUnsignedByte() : UInt;
  22. function readUnsignedInt() : UInt;
  23. function readUnsignedShort() : UInt;
  24. private function set_endian(value : Endian) : Endian;
  25. private function set_objectEncoding(value : UInt) : UInt;
  26. }