pass
int PyObject_AsReadBuffer(obj, void **buf, Py_ssize_t *len) except -1
+ IF PYVERSION >= (3,):
+ object PyUnicode_DecodeUTF8Stateful(const char *s, Py_ssize_t sz,
+ const char *errors,
+ Py_ssize_t *used_out)
+
object PyInt_FromLong(long i)
object PyLong_FromUnsignedLong(unsigned long i)
+
void PyErr_Clear()
void Py_INCREF(PyObject *obj)
cdef extern from 'mLib/lbuf.h':
cdef struct lbuf:
- int f
- int delim
+ unsigned f
+ unsigned delim
+ size_t len
size_t sz
+ char *buf
enum:
LBUF_ENABLE
_LBUF_CRLF "LBUF_CRLF"