Esempio n. 1
0
 def size(self):
     '''
     Returns the size of the field in bytes. This function will add
     all the bit field sizes in order to calculate the byte size of
     the container.
     '''
     return byte_end(Container.size(self))
Esempio n. 2
0
 def size(self):
     """
     Returns the size of the field in bytes. This function will add
     all the bit field sizes in order to calculate the byte size of
     the container.
     """
     return byte_end(Container.size(self))
Esempio n. 3
0
 def __init__(self, name):
     """
     Initialize the structure with the given *name*. By default, it
     does not contain any fields.
     """
     Container.__init__(self, name)
Esempio n. 4
0
 def __init__(self, name):
     '''
     Initialize the bit structure field with the given *name*. By
     default an structure field does not contain any fields.
     '''
     Container.__init__(self, name)