Lines Matching refs:header
55 SquashfsFilesystem::SquashfsHeader* header) { in ReadSquashfsHeader() argument
60 memcpy(&header->magic, blob.data(), 4); in ReadSquashfsHeader()
61 memcpy(&header->block_size, blob.data() + 12, 4); in ReadSquashfsHeader()
62 memcpy(&header->compression_type, blob.data() + 20, 2); in ReadSquashfsHeader()
63 memcpy(&header->major_version, blob.data() + 28, 2); in ReadSquashfsHeader()
67 bool CheckHeader(const SquashfsFilesystem::SquashfsHeader& header) { in CheckHeader() argument
68 return header.magic == 0x73717368 && header.major_version == 4; in CheckHeader()
97 const SquashfsHeader& header, in Init() argument
101 bool is_zlib = header.compression_type == kSquashfsZlibCompression; in Init()
130 TEST_AND_RETURN_FALSE(new_blk_size <= header.block_size); in Init()
269 SquashfsHeader header; in CreateFromFile() local
275 if (!ReadSquashfsHeader(blob, &header) || !CheckHeader(header)) { in CreateFromFile()
289 filemap, sqfs_path, sqfs_file->GetSize(), header, extract_deflates)) { in CreateFromFile()
298 const string& filemap, size_t size, const SquashfsHeader& header) { in CreateFromFileMap() argument
299 if (!CheckHeader(header)) { in CreateFromFileMap()
305 if (!sqfs->Init(filemap, "", size, header, false)) { in CreateFromFileMap()
327 SquashfsHeader header; in IsSquashfsImage() local
328 return ReadSquashfsHeader(blob, &header) && CheckHeader(header); in IsSquashfsImage()