選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

66 行
1.3 KiB

  1. #cdef extern from "Python.h":
  2. # ctypedef struct FILE
  3. from libc.stdint cimport uint8_t, int32_t, uint32_t, int64_t, uint64_t
  4. cdef class TupleProxy:
  5. cdef:
  6. char * data
  7. char ** fields
  8. int nfields
  9. int nbytes
  10. int offset
  11. bint is_modified
  12. cdef encoding
  13. cpdef int getMaxFields(self)
  14. cpdef int getMinFields(self)
  15. # cdef char * _getindex(self, int idx)
  16. cdef take(self, char * buffer, size_t nbytes)
  17. cdef present(self, char * buffer, size_t nbytes)
  18. cdef copy(self, char * buffer, size_t nbytes, bint reset=*)
  19. cdef update(self, char * buffer, size_t nbytes)
  20. cdef class TupleProxyIterator:
  21. cdef TupleProxy proxy
  22. cdef int index
  23. cdef class NamedTupleProxy(TupleProxy):
  24. pass
  25. cdef class GTFProxy(NamedTupleProxy):
  26. cdef object attribute_dict
  27. cpdef int getMaxFields(self)
  28. cpdef int getMinFields(self)
  29. cdef class GFF3Proxy(GTFProxy):
  30. pass
  31. cdef class BedProxy(NamedTupleProxy):
  32. cdef:
  33. char * contig
  34. uint32_t start
  35. uint32_t end
  36. int bedfields
  37. cpdef int getMaxFields(self)
  38. cpdef int getMinFields(self)
  39. cdef update(self, char * buffer, size_t nbytes)
  40. cdef class VCFProxy(NamedTupleProxy) :
  41. cdef:
  42. char * contig
  43. uint32_t pos
  44. cdef update(self, char * buffer, size_t nbytes)