Exemplo 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
Exemplo 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)
Exemplo 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
Exemplo 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)
Exemplo 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)
Exemplo 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)