Belle II Software development
|
Public Member Functions | |
def | __init__ (self, keydata, large=False) |
def | normalize (self, pos=None, offset=None) |
def | recreate_header (self) |
def | get_int (self, data, pos, wordlen=4) |
def | get_string (self, data, pos) |
Public Attributes | |
large | |
are file location pointers 4 or 8 bits? | |
wordlen | |
size of file location pointers | |
header | |
length of compressed object (in bytes) | |
data | |
data bytes associated to the object | |
showname | |
name to show in the list of keys | |
datime | |
date and time when object was written to file | |
seekkey | |
pointer to record itself (consistency check) | |
def __init__ | ( | self, | |
keydata, | |||
large = False |
|||
) |
Obtain key header and data payload from given data and extract header information
Definition at line 124 of file b2root.py.
def get_int | ( | self, | |
data, | |||
pos, | |||
wordlen = 4 |
|||
) |
def get_string | ( | self, | |
data, | |||
pos | |||
) |
Helper function to read a string from binary data
Definition at line 202 of file b2root.py.
def normalize | ( | self, | |
pos = None , |
|||
offset = None |
|||
) |
Set the key datime to zero adjust the pointer to itself if given as argument
Definition at line 163 of file b2root.py.
def recreate_header | ( | self | ) |
Build the binary header information from the data members
Definition at line 178 of file b2root.py.
header |
length of compressed object (in bytes)
TKey version identifier
length of uncompressed object
date and time when object was written to file
length of the key structure (in bytes)
cycle of key
pointer to record itself (consistency check)
pointer to directory header
object Class Name
name of the object
title of the object
binary header