Lines Matching refs:blob
60 bool ReadSquashfsHeader(const brillo::Blob blob,
62 if (blob.size() < kSquashfsSuperBlockSize) {
66 memcpy(&header->magic, blob.data(), 4);
67 memcpy(&header->block_size, blob.data() + 12, 4);
68 memcpy(&header->compression_type, blob.data() + 20, 2);
69 memcpy(&header->major_version, blob.data() + 28, 2);
266 brillo::Blob blob(kSquashfsSuperBlockSize);
267 if (!sqfs_file->ReadAllBlocking(blob.data(), blob.size(), nullptr)) {
271 if (!ReadSquashfsHeader(blob, &header) || !CheckHeader(header)) {
328 bool SquashfsFilesystem::IsSquashfsImage(const brillo::Blob& blob) {
330 return ReadSquashfsHeader(blob, &header) && CheckHeader(header);