Home
last modified time | relevance | path

Searched refs:deflates (Results 1 – 11 of 11) sorted by relevance

/external/puffin/src/
Dutils_unittest.cc88 const vector<BitExtent>& deflates) { in FindDeflatesInZlibBlocks() argument
99 ASSERT_EQ(deflates, deflates_out); in FindDeflatesInZlibBlocks()
103 const vector<BitExtent>& deflates, in CheckFindPuffLocation() argument
109 ASSERT_TRUE(FindPuffLocations(src, deflates, &puffs, &puff_size)); in CheckFindPuffLocation()
128 vector<ByteExtent> deflates; in TEST() local
129 EXPECT_TRUE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
130 EXPECT_EQ(static_cast<size_t>(1), deflates.size()); in TEST()
131 EXPECT_EQ(ByteExtent(2, 13), deflates[0]); in TEST()
146 vector<ByteExtent> deflates; in TEST() local
148 EXPECT_FALSE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
[all …]
Dpuffin_stream.cc32 const std::vector<BitExtent>& deflates, in CheckArgsIntegrity() argument
34 TEST_AND_RETURN_FALSE(puffs.size() == deflates.size()); in CheckArgsIntegrity()
46 TEST_AND_RETURN_FALSE(deflates.end() == std::adjacent_find(deflates.begin(), in CheckArgsIntegrity()
47 deflates.end(), in CheckArgsIntegrity()
61 const std::vector<BitExtent>& deflates, in CreateForPuff() argument
64 TEST_AND_RETURN_VALUE(CheckArgsIntegrity(puff_size, deflates, puffs), in CreateForPuff()
69 nullptr, puff_size, deflates, in CreateForPuff()
79 const std::vector<BitExtent>& deflates, in CreateForHuff() argument
81 TEST_AND_RETURN_VALUE(CheckArgsIntegrity(puff_size, deflates, puffs), in CreateForHuff()
86 std::move(stream), nullptr, huffer, puff_size, deflates, puffs, 0)); in CreateForHuff()
[all …]
Dutils.cc127 const vector<ByteExtent>& deflates, in FindDeflateSubBlocks() argument
131 for (const auto& deflate : deflates) { in FindDeflateSubBlocks()
155 vector<BitExtent>* deflates) { in LocateDeflatesInZlibBlocks() argument
175 deflates->emplace_back(zlib.offset * 8 + def.offset, def.length); in LocateDeflatesInZlibBlocks()
332 vector<BitExtent>* deflates) { in LocateDeflateSubBlocksInZipArchive() argument
339 return FindDeflateSubBlocks(src, deflate_blocks, deflates); in LocateDeflateSubBlocksInZipArchive()
343 const vector<BitExtent>& deflates, in FindPuffLocations() argument
354 for (auto deflate = deflates.begin(); deflate != deflates.end(); ++deflate) { in FindPuffLocations()
380 if (deflate != deflates.begin()) { in FindPuffLocations()
Dpuffer.cc32 vector<BitExtent>* deflates, in PuffDeflate() argument
98 if (deflates != nullptr) { in PuffDeflate()
99 deflates->emplace_back(start_bit_offset, in PuffDeflate()
160 if (deflates != nullptr) { in PuffDeflate()
161 deflates->emplace_back(start_bit_offset, in PuffDeflate()
Dpuffin_stream.h49 const std::vector<BitExtent>& deflates,
63 const std::vector<BitExtent>& deflates,
94 const std::vector<BitExtent>& deflates,
Dpuffdiff.cc105 [&puffer](UniqueStreamPtr stream, const vector<BitExtent>& deflates, in PuffDiff()
110 FindPuffLocations(stream, deflates, puffs, &puff_size)); in PuffDiff()
113 std::move(stream), puffer, puff_size, deflates, *puffs); in PuffDiff()
Dmain.cc95 vector<ByteExtent>* deflates) { in LocateDeflatesBasedOnFileType() argument
130 *deflates = {ByteExtent(0, stream_size)}; in LocateDeflatesBasedOnFileType()
138 TEST_AND_RETURN_FALSE(puffin::LocateDeflatesInZlib(data, deflates)); in LocateDeflatesBasedOnFileType()
141 TEST_AND_RETURN_FALSE(puffin::LocateDeflatesInGzip(data, deflates)); in LocateDeflatesBasedOnFileType()
144 TEST_AND_RETURN_FALSE(puffin::LocateDeflatesInZipArchive(data, deflates)); in LocateDeflatesBasedOnFileType()
Dpuffpatch.cc78 CopyRpfToVector(header.src().deflates(), src_deflates, 1); in DecodePatch()
79 CopyRpfToVector(header.dst().deflates(), dst_deflates, 1); in DecodePatch()
Dpuffin.proto16 repeated BitExtent deflates = 1; field
/external/puffin/src/include/puffin/
Dutils.h43 std::vector<BitExtent>* deflates);
59 std::vector<BitExtent>* deflates);
66 const std::vector<ByteExtent>& deflates,
73 const std::vector<BitExtent>& deflates,
Dpuffer.h30 std::vector<BitExtent>* deflates,