Lines Matching refs:blob
52 bool ReadSquashfsHeader(const brillo::Blob blob, in ReadSquashfsHeader() argument
54 if (blob.size() < kSquashfsSuperBlockSize) { in ReadSquashfsHeader()
58 memcpy(&header->magic, blob.data(), 4); in ReadSquashfsHeader()
59 memcpy(&header->block_size, blob.data() + 12, 4); in ReadSquashfsHeader()
60 memcpy(&header->compression_type, blob.data() + 20, 2); in ReadSquashfsHeader()
61 memcpy(&header->major_version, blob.data() + 28, 2); in ReadSquashfsHeader()
257 brillo::Blob blob(kSquashfsSuperBlockSize); in CreateFromFile() local
258 if (!sqfs_file->ReadAllBlocking(blob.data(), blob.size(), nullptr)) { in CreateFromFile()
262 if (!ReadSquashfsHeader(blob, &header) || !CheckHeader(header)) { in CreateFromFile()
319 bool SquashfsFilesystem::IsSquashfsImage(const brillo::Blob& blob) { in IsSquashfsImage() argument
321 return ReadSquashfsHeader(blob, &header) && CheckHeader(header); in IsSquashfsImage()