IOBase.hx 603 B

123456789101112131415161718192021222324
  1. package python.lib.io;
  2. @:enum abstract SeekSet(Int) {
  3. var SeekSet = 0;
  4. var SeekCur = 1;
  5. var SeekEnd = 2;
  6. }
  7. extern class IOBase {
  8. public function close():Void;
  9. public function flush():Void;
  10. public function readline(limit:Int = -1):String;
  11. public function readable():Bool;
  12. public var closed(default, null):Bool;
  13. public function readlines(hint:Int=-1):Array<String>;
  14. public function tell():Int;
  15. public function writable():Bool;
  16. public function seekable():Bool;
  17. public function fileno():Int;
  18. public function seek(offset:Int, whence:SeekSet):Int;
  19. public function truncate (size:Int):Int;
  20. }