Exemple #1
0
    def pack(self):
        size = self.calcsize()
        self.tag_size = size >> 2

        data = NameStruct.pack(self) + self.cmdline
        data += '\0' * (size - len(data))
        return data
Exemple #2
0
    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)
Exemple #3
0
    def pack(self):
        size = self.calcsize()
        self.tag_size = size >> 2

        data = NameStruct.pack(self) + self.cmdline
        data += '\0' * (size - len(data))
        return data
Exemple #4
0
    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)
Exemple #5
0
 def pack(self):
     # the NONE tag is a bit special in that the size is 0
     self.tag_size = 0
     return NameStruct.pack(self)
Exemple #6
0
 def pack(self):
     # the NONE tag is a bit special in that the size is 0
     self.tag_size = 0
     return NameStruct.pack(self)