| 1 |
# cython: language_level=3 |
| 2 |
|
| 3 |
from libc.stdint cimport uint8_t, int32_t, uint32_t, int64_t, uint64_t |
| 4 |
|
| 5 |
cdef class TupleProxy: |
| 6 |
|
| 7 |
cdef: |
| 8 |
char * data |
| 9 |
char ** fields |
| 10 |
int nfields |
| 11 |
int nbytes |
| 12 |
int offset |
| 13 |
bint is_modified |
| 14 |
|
| 15 |
cdef encoding |
| 16 |
|
| 17 |
cpdef int getMaxFields(self) |
| 18 |
cpdef int getMinFields(self) |
| 19 |
# cdef char * _getindex(self, int idx) |
| 20 |
|
| 21 |
cdef take(self, char * buffer, size_t nbytes) |
| 22 |
cdef present(self, char * buffer, size_t nbytes) |
| 23 |
cdef copy(self, char * buffer, size_t nbytes, bint reset=*) |
| 24 |
cdef update(self, char * buffer, size_t nbytes) |
| 25 |
|
| 26 |
|
| 27 |
cdef class TupleProxyIterator: |
| 28 |
cdef TupleProxy proxy |
| 29 |
cdef int index |
| 30 |
|
| 31 |
|
| 32 |
cdef class NamedTupleProxy(TupleProxy): |
| 33 |
pass |
| 34 |
|
| 35 |
|
| 36 |
cdef class GTFProxy(NamedTupleProxy): |
| 37 |
cdef object attribute_dict |
| 38 |
cpdef int getMaxFields(self) |
| 39 |
cpdef int getMinFields(self) |
| 40 |
|
| 41 |
|
| 42 |
cdef class GFF3Proxy(GTFProxy): |
| 43 |
pass |
| 44 |
|
| 45 |
|
| 46 |
cdef class BedProxy(NamedTupleProxy): |
| 47 |
|
| 48 |
cdef: |
| 49 |
char * contig |
| 50 |
uint32_t start |
| 51 |
uint32_t end |
| 52 |
int bedfields |
| 53 |
|
| 54 |
cpdef int getMaxFields(self) |
| 55 |
cpdef int getMinFields(self) |
| 56 |
cdef update(self, char * buffer, size_t nbytes) |
| 57 |
|
| 58 |
cdef class VCFProxy(NamedTupleProxy) : |
| 59 |
|
| 60 |
cdef: |
| 61 |
char * contig |
| 62 |
uint32_t pos |
| 63 |
|
| 64 |
cdef update(self, char * buffer, size_t nbytes) |