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