ByteArray.hx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package flash.utils;
  2. extern class ByteArray implements IDataInput, implements IDataOutput, implements ArrayAccess<Int> {
  3. var bytesAvailable(default,null) : UInt;
  4. var endian : Endian;
  5. var length : UInt;
  6. var objectEncoding : UInt;
  7. var position : UInt;
  8. function new() : Void;
  9. function compress() : Void;
  10. function readBoolean() : Bool;
  11. function readByte() : Int;
  12. function readBytes(bytes : ByteArray, ?offset : UInt, ?length : UInt) : 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. function toString() : String;
  25. function uncompress() : Void;
  26. function writeBoolean(value : Bool) : Void;
  27. function writeByte(value : Int) : Void;
  28. function writeBytes(bytes : ByteArray, ?offset : UInt, ?length : UInt) : Void;
  29. function writeDouble(value : Float) : Void;
  30. function writeFloat(value : Float) : Void;
  31. function writeInt(value : Int) : Void;
  32. function writeMultiByte(value : String, charSet : String) : Void;
  33. function writeObject(object : Dynamic) : Void;
  34. function writeShort(value : Int) : Void;
  35. function writeUTF(value : String) : Void;
  36. function writeUTFBytes(value : String) : Void;
  37. function writeUnsignedInt(value : UInt) : Void;
  38. #if flash10
  39. function clear():Void;
  40. function deflate():Void;
  41. function inflate():Void;
  42. #end
  43. static var defaultObjectEncoding : UInt;
  44. }