def pack(self): size = self.calcsize() self.tag_size = size >> 2 data = NameStruct.pack(self) + self.cmdline data += '\0' * (size - len(data)) return data
def pack(self): size = self.calcsize() # the size of a tag must be multiple of a dword assert not size & 3 self.tag_size = size >> 2 return NameStruct.pack(self)
def pack(self): # the NONE tag is a bit special in that the size is 0 self.tag_size = 0 return NameStruct.pack(self)