示例#1
0
 def pack(self):
     data =Struct.pack(self)
     return data
示例#2
0
 def pack(self):
     data = Struct.pack(self)
     data += '\0' * (4096-Struct.calcsize())
     return data
示例#3
0
 def pack(self):
     data =Struct.pack(self)
     if self['Data']:
         data += self['Data'].pack()
     return data