CTOC

Inheritance:

Methods of CTOC:

__getitem__
def __getitem__(self, ndx)

Undocumented function.

__init__
def __init__(self)

Undocumented function.

add
def add(self, dpos, dlen, ulen, flag, typcd, nm)

Add an entry to the table of contents.
DPOS is data position. DLEN is data length. ULEN is the uncompressed data len. FLAG says if the data is compressed. TYPCD is the "type" of the entry (used by the C code) NM is the entry's name.

find
def find(self, name)

Return the index of the toc entry with name NAME.
Return -1 for failure.

frombinary
def frombinary(self, s)

Decode the binary string into an in memory list.
S is a binary string.

get
def get(self, ndx)

return the toc entry (tuple) at index NDX

tobinary
def tobinary(self)

Return self as a binary string.