jpayne@69: # cython: language_level=3 jpayne@69: jpayne@69: from libc.stdint cimport uint8_t, int32_t, uint32_t, int64_t, uint64_t jpayne@69: jpayne@69: cdef class TupleProxy: jpayne@69: jpayne@69: cdef: jpayne@69: char * data jpayne@69: char ** fields jpayne@69: int nfields jpayne@69: int nbytes jpayne@69: int offset jpayne@69: bint is_modified jpayne@69: jpayne@69: cdef encoding jpayne@69: jpayne@69: cpdef int getMaxFields(self) jpayne@69: cpdef int getMinFields(self) jpayne@69: # cdef char * _getindex(self, int idx) jpayne@69: jpayne@69: cdef take(self, char * buffer, size_t nbytes) jpayne@69: cdef present(self, char * buffer, size_t nbytes) jpayne@69: cdef copy(self, char * buffer, size_t nbytes, bint reset=*) jpayne@69: cdef update(self, char * buffer, size_t nbytes) jpayne@69: jpayne@69: jpayne@69: cdef class TupleProxyIterator: jpayne@69: cdef TupleProxy proxy jpayne@69: cdef int index jpayne@69: jpayne@69: jpayne@69: cdef class NamedTupleProxy(TupleProxy): jpayne@69: pass jpayne@69: jpayne@69: jpayne@69: cdef class GTFProxy(NamedTupleProxy): jpayne@69: cdef object attribute_dict jpayne@69: cpdef int getMaxFields(self) jpayne@69: cpdef int getMinFields(self) jpayne@69: jpayne@69: jpayne@69: cdef class GFF3Proxy(GTFProxy): jpayne@69: pass jpayne@69: jpayne@69: jpayne@69: cdef class BedProxy(NamedTupleProxy): jpayne@69: jpayne@69: cdef: jpayne@69: char * contig jpayne@69: uint32_t start jpayne@69: uint32_t end jpayne@69: int bedfields jpayne@69: jpayne@69: cpdef int getMaxFields(self) jpayne@69: cpdef int getMinFields(self) jpayne@69: cdef update(self, char * buffer, size_t nbytes) jpayne@69: jpayne@69: cdef class VCFProxy(NamedTupleProxy) : jpayne@69: jpayne@69: cdef: jpayne@69: char * contig jpayne@69: uint32_t pos jpayne@69: jpayne@69: cdef update(self, char * buffer, size_t nbytes)