IInput.hx 851 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package python.io;
  2. import haxe.io.Bytes;
  3. interface IInput
  4. {
  5. public var bigEndian(default,set) : Bool;
  6. public function readByte() : Int;
  7. public function readBytes( s : Bytes, pos : Int, len : Int ) : Int;
  8. public function close():Void;
  9. public function readAll( ?bufsize : Int ) : Bytes;
  10. public function readFullBytes( s : Bytes, pos : Int, len : Int ):Void;
  11. public function read( nbytes : Int ) : Bytes;
  12. public function readUntil( end : Int ) : String;
  13. public function readLine() : String;
  14. public function readFloat() : Float;
  15. public function readDouble() : Float;
  16. public function readInt8():Int;
  17. public function readInt16():Int;
  18. public function readUInt16():Int;
  19. public function readInt24():Int;
  20. public function readUInt24():Int;
  21. public function readInt32():Int;
  22. public function readString( len : Int ) : String;
  23. }