示例#1
0
文件: tags.py 项目: pinkavaj/romtools
    def pack(self):
        size = self.calcsize()
        self.tag_size = size >> 2

        data = NameStruct.pack(self) + self.cmdline
        data += '\0' * (size - len(data))
        return data
示例#2
0
文件: tags.py 项目: pinkavaj/romtools
    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)
示例#3
0
文件: tags.py 项目: pinkavaj/romtools
    def pack(self):
        size = self.calcsize()
        self.tag_size = size >> 2

        data = NameStruct.pack(self) + self.cmdline
        data += '\0' * (size - len(data))
        return data
示例#4
0
文件: tags.py 项目: pinkavaj/romtools
    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)
示例#5
0
文件: tags.py 项目: pinkavaj/romtools
 def pack(self):
     # the NONE tag is a bit special in that the size is 0
     self.tag_size = 0
     return NameStruct.pack(self)
示例#6
0
文件: tags.py 项目: pinkavaj/romtools
 def pack(self):
     # the NONE tag is a bit special in that the size is 0
     self.tag_size = 0
     return NameStruct.pack(self)