File: bpt_file.pxd

package info (click to toggle)
python-bx 0.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,000 kB
  • sloc: python: 17,136; ansic: 2,326; makefile: 24; sh: 8
file content (17 lines) | stat: -rw-r--r-- 379 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from bx.misc.binary_file import BinaryFileReader

from .types cimport *


cdef class BPTFile:
    """
    On disk B+ tree compatible with Jim Kent's bPlusTree.c
    """
    cdef object file
    cdef object reader
    cdef boolean is_byteswapped
    cdef bits32 block_size
    cdef bits32 key_size
    cdef bits32 value_size
    cdef bits64 item_count
    cdef bits64 root_offset