def ReadChildData(self, child, decomp=True): if not self.reader: data = Entry.ReadData(self, True) self.reader = cbfs_util.CbfsReader(data) reader = self.reader cfile = reader.files.get(child.name) return cfile.data if decomp else cfile.orig_data
def ReadData(self, decomp=True): indata = Entry.ReadData(self, decomp) if decomp: data = tools.Decompress(indata, self.compress) if self.uncomp_size: tout.Info( "%s: Decompressing data size %#x with algo '%s' to data size %#x" % (self.GetPath(), len(indata), self.compress, len(data))) else: data = indata return data
def ReadData(self, decomp=True): data = Entry.ReadData(self, True) return data