Home
last modified time | relevance | path

Searched refs:block_data (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/payload_generator/
Dblock_mapping.cc44 BlockMapping::BlockId BlockMapping::AddBlock(const brillo::Blob& block_data) { in AddBlock() argument
45 return AddBlock(-1, 0, block_data); in AddBlock()
74 const brillo::Blob& block_data) { in AddBlock() argument
75 if (block_data.size() != block_size_) in AddBlock()
77 size_t h = HashValue(block_data); in AddBlock()
90 if (!existing_block.CompareData(block_data, &equals)) in AddBlock()
109 new_ublock->block_data = block_data; in AddBlock()
116 if (!block_data.empty()) { in CompareData()
117 *equals = block_data == other_block; in CompareData()
136 block_data = std::move(blob); in CompareData()
Dblock_mapping.h44 BlockId AddBlock(const brillo::Blob& block_data);
67 BlockId AddBlock(int fd, off_t byte_offset, const brillo::Blob& block_data);
76 brillo::Blob block_data; member
Dblock_mapping_unittest.cc67 EXPECT_TRUE(ublock.block_data.empty()); in TEST_F()
79 EXPECT_FALSE(ublock.block_data.empty()); in TEST_F()
Ddelta_diff_utils_unittest.cc97 brillo::Blob block_data(prefix.begin(), prefix.end()); in InitializePartitionWithUniqueBlocks() local
99 block_data.resize(block_size, 'X'); in InitializePartitionWithUniqueBlocks()
100 std::copy(block_data.begin(), in InitializePartitionWithUniqueBlocks()
101 block_data.end(), in InitializePartitionWithUniqueBlocks()