def pack(self): data =Struct.pack(self) return data
def pack(self): data = Struct.pack(self) data += '\0' * (4096-Struct.calcsize()) return data
def pack(self): data =Struct.pack(self) if self['Data']: data += self['Data'].pack() return data