bx.misc.cdb module
- class bx.misc.cdb.FileCDBDict(file, is_little_endian=True)
Bases:
Mapping
For accessing a CDB structure on disk. Read only. Currently only supports access by key (getitem).
NOTE: The keys method could be implemented by scanning the main table.
- classmethod to_file(dict, file, is_little_endian=True)
For constructing a CDB structure in a file. Able to calculate size on disk and write to a file
- bx.misc.cdb.cdbhash(s)