Esempio n. 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
Esempio n. 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)
Esempio n. 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
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)