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
def _AddStructComputedData(self, exported, struct): """Adds computed data to the given struct. The data is computed once and used repeatedly in the generation process.""" if not hasattr(struct, 'packed') or struct.packed is None: struct.packed = pack.PackedStruct(struct) struct.bytes = pack.GetByteLayout(struct.packed) struct.exported = exported return struct
def GetDataHeader(exported, struct): struct.packed = pack.PackedStruct(struct) struct.bytes = pack.GetByteLayout(struct.packed) struct.exported = exported return struct
def _AddStructComputedData(exported, struct): struct.packed = pack.PackedStruct(struct) struct.bytes = pack.GetByteLayout(struct.packed) struct.versions = pack.GetVersionInfo(struct.packed) struct.exported = exported
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