Beispiel #1
0
 public static PyString readline(PyIOBase self, PyInteger size = null)
 {
     if (size == null)
     {
         size = PyInteger.Create(-1);
     }
     return(PyString.Create(self.Readline(size.number)));
 }
Beispiel #2
0
 public static void truncate(PyIOBase self, PyInteger size)
 {
     self.Truncate(size.number);
 }
Beispiel #3
0
 public static PyInteger tell(PyIOBase self)
 {
     return(PyInteger.Create(self.Tell()));
 }
Beispiel #4
0
 public static bool seekable(PyIOBase self)
 {
     return(PyBool.Create(self.Seekable()));
 }
Beispiel #5
0
 public static void seek(PyIOBase self, PyInteger offset, PyInteger whence = null)
 {
     self.Seek(offset.number, whence?.number ?? new BigInteger(0));
 }
Beispiel #6
0
 public static PyList readlines(PyIOBase self, PyInteger size)
 {
     return(PyList.Create());
 }
Beispiel #7
0
 public static bool isatty(PyIOBase self)
 {
     return(self.IsaTTY());
 }
Beispiel #8
0
 public static bool readable(PyIOBase self)
 {
     return(PyBool.Create(self.Readable()));
 }
Beispiel #9
0
 public static PyInteger fileno(PyIOBase self)
 {
     return(PyInteger.Create(self.Fileno()));
 }
Beispiel #10
0
 public static void flush(PyIOBase self)
 {
     self.Flush();
 }
Beispiel #11
0
 public static bool closed(PyIOBase self)
 {
     return(self.Closed());
 }
Beispiel #12
0
 public static void close(PyIOBase self)
 {
     self.Close();
 }
Beispiel #13
0
 public static void __del__(PyIOBase self)
 {
     self.Dispose();
 }
Beispiel #14
0
 public static void writelines(PyIOBase self, PyList lines)
 {
 }
Beispiel #15
0
 public static PyBool writeable(PyIOBase self)
 {
     return(PyBool.Create(self.Writeable()));
 }