IDataInput.hx 1015 B

1234567891011121314151617181920212223242526
  1. package flash.utils;
  2. extern interface 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. private function get_bytesAvailable() : UInt;
  7. private function get_endian() : Endian;
  8. private function get_objectEncoding() : UInt;
  9. function readBoolean() : Bool;
  10. function readByte() : Int;
  11. function readBytes(bytes : ByteArray, offset : UInt = 0, length : UInt = 0) : Void;
  12. function readDouble() : Float;
  13. function readFloat() : Float;
  14. function readInt() : Int;
  15. function readMultiByte(length : UInt, charSet : String) : String;
  16. function readObject() : Dynamic;
  17. function readShort() : Int;
  18. function readUTF() : String;
  19. function readUTFBytes(length : UInt) : String;
  20. function readUnsignedByte() : UInt;
  21. function readUnsignedInt() : UInt;
  22. function readUnsignedShort() : UInt;
  23. private function set_endian(value : Endian) : Endian;
  24. private function set_objectEncoding(value : UInt) : UInt;
  25. }