Ejemplo 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))
Ejemplo 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))
Ejemplo 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)
Ejemplo 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)