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