Beispiel #1
0
 def _AddStructComputedData(self, exported, struct):
   """Adds computed data to the given struct. The data is computed once and
   used repeatedly in the generation process."""
   struct.packed = pack.PackedStruct(struct)
   struct.bytes = pack.GetByteLayout(struct.packed)
   struct.versions = pack.GetVersionInfo(struct.packed)
   struct.exported = exported
   return struct
Beispiel #2
0
 def _AddStructComputedData(exported, struct):
   struct.packed = pack.PackedStruct(struct)
   struct.bytes = pack.GetByteLayout(struct.packed)
   struct.versions = pack.GetVersionInfo(struct.packed)
   struct.exported = exported
Beispiel #3
0
def _GetDataHeader(exported, struct):
    struct.packed = pack.PackedStruct(struct)
    struct.bytes = pack.GetByteLayout(struct.packed)
    struct.versions = pack.GetVersionInfo(struct.packed)
    struct.exported = exported
    return struct