BufferedIOBase.hx 817 B

123456789101112131415161718192021222324252627282930
  1. package python.lib.io;
  2. import python.lib.io.IOBase;
  3. import python.lib.io.RawIOBase;
  4. import python.lib.Bytearray;
  5. @:pythonImport("io", "BufferedIOBase")
  6. extern class BufferedIOBase extends IOBase implements IBufferedIOBase {
  7. /* not always available */
  8. public var raw:RawIOBase;
  9. public function write (b:Bytearray):Int;
  10. public function readinto (b:Bytearray):Int;
  11. public function detach ():RawIOBase;
  12. public function read(n:Int = -1):Null<Bytes>;
  13. public function read1(n:Int = -1):Null<Bytes>;
  14. }
  15. @:remove extern interface IBufferedIOBase extends IIOBase {
  16. public var raw:RawIOBase;
  17. public function write (b:Bytearray):Int;
  18. public function readinto (b:Bytearray):Int;
  19. public function detach ():RawIOBase;
  20. public function read(n:Int = -1):Null<Bytes>;
  21. public function read1(n:Int = -1):Null<Bytes>;
  22. }