Home
last modified time | relevance | path

Searched refs:deflates (Results 1 – 12 of 12) 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<BitExtent> deflates; in TEST() local
130 EXPECT_TRUE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
131 EXPECT_EQ(deflates, expected_deflates); in TEST()
146 vector<BitExtent> deflates; in TEST() local
148 EXPECT_FALSE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
150 EXPECT_FALSE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
[all …]
Dutils.cc76 vector<BitExtent>* deflates, in LocateDeflatesInDeflateStream() argument
85 deflates->emplace_back(deflate.offset + virtual_offset * 8, deflate.length); in LocateDeflatesInDeflateStream()
98 bool LocateDeflatesInZlib(const Buffer& data, vector<BitExtent>* deflates) { in LocateDeflatesInZlib() argument
126 deflates, nullptr)); in LocateDeflatesInZlib()
131 const vector<ByteExtent>& deflates, in FindDeflateSubBlocks() argument
135 for (const auto& deflate : deflates) { in FindDeflateSubBlocks()
161 vector<BitExtent>* deflates) { in LocateDeflatesInZlibBlocks() argument
173 deflates->emplace_back(deflate.offset + zlib.offset * 8, deflate.length); in LocateDeflatesInZlibBlocks()
181 bool LocateDeflatesInGzip(const Buffer& data, vector<BitExtent>* deflates) { in LocateDeflatesInGzip() argument
229 data.data() + offset, data.size() - offset, offset, deflates, in LocateDeflatesInGzip()
[all …]
Dpuffin_stream.cc32 const 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()
60 const vector<BitExtent>& deflates, in CreateForPuff() argument
63 TEST_AND_RETURN_VALUE(CheckArgsIntegrity(puff_size, deflates, puffs), in CreateForPuff()
68 nullptr, puff_size, deflates, in CreateForPuff()
77 const vector<BitExtent>& deflates, in CreateForHuff() argument
79 TEST_AND_RETURN_VALUE(CheckArgsIntegrity(puff_size, deflates, puffs), in CreateForHuff()
84 std::move(stream), nullptr, huffer, puff_size, deflates, puffs, 0)); in CreateForHuff()
[all …]
Dpuffin_unittest.cc273 vector<BitExtent> deflates; in TEST_F() local
288 vector<BitExtent> deflates; in TEST_F() local
289 EXPECT_TRUE(puffer_.PuffDeflate(&bit_reader, &puff_writer, &deflates)); in TEST_F()
290 EXPECT_TRUE(deflates.empty()); in TEST_F()
504 vector<BitExtent> deflates; in TEST_F() local
505 EXPECT_TRUE(puffer_.PuffDeflate(&bit_reader, &puff_writer, &deflates)); in TEST_F()
507 EXPECT_EQ(deflates, kExpectedDeflates); in TEST_F()
585 vector<BitExtent> deflates, empty; in TEST_F() local
587 EXPECT_TRUE(puffer.PuffDeflate(&br, &pw, &deflates)); in TEST_F()
588 EXPECT_EQ(deflates, empty); in TEST_F()
[all …]
Dpuffin_stream.h49 const std::vector<BitExtent>& deflates,
63 const std::vector<BitExtent>& deflates,
94 const std::vector<BitExtent>& deflates,
Dpuffer.cc37 vector<BitExtent>* deflates) const { in PuffDeflate()
57 if (deflates != nullptr && final_bit) { in PuffDeflate()
164 if (deflates != nullptr && include_deflate) { in PuffDeflate()
165 deflates->emplace_back(start_bit_offset, in PuffDeflate()
Dmain.cc95 vector<BitExtent>* deflates) { in LocateDeflatesBasedOnFileType() argument
133 data.data(), data.size(), 0, deflates, nullptr)); in LocateDeflatesBasedOnFileType()
136 TEST_AND_RETURN_FALSE(puffin::LocateDeflatesInZlib(data, deflates)); in LocateDeflatesBasedOnFileType()
139 TEST_AND_RETURN_FALSE(puffin::LocateDeflatesInGzip(data, deflates)); in LocateDeflatesBasedOnFileType()
142 TEST_AND_RETURN_FALSE(puffin::LocateDeflatesInZipArchive(data, deflates)); in LocateDeflatesBasedOnFileType()
Dpuffdiff.cc108 [&puffer](UniqueStreamPtr stream, const vector<BitExtent>& deflates, in PuffDiff()
113 FindPuffLocations(stream, deflates, puffs, &puff_size)); in PuffDiff()
116 std::move(stream), puffer, puff_size, deflates, *puffs); in PuffDiff()
Dpuffpatch.cc128 CopyRpfToVector(header.src().deflates(), src_deflates, 1); in DecodePatch()
129 CopyRpfToVector(header.dst().deflates(), dst_deflates, 1); in DecodePatch()
Dpuffin.proto16 repeated BitExtent deflates = 1; field
/external/puffin/src/include/puffin/
Dutils.h39 std::vector<BitExtent>* deflates,
44 bool LocateDeflatesInZlib(const Buffer& data, std::vector<BitExtent>* deflates);
50 std::vector<BitExtent>* deflates);
54 bool LocateDeflatesInGzip(const Buffer& data, std::vector<BitExtent>* deflates);
58 std::vector<BitExtent>* deflates);
65 const std::vector<ByteExtent>& deflates,
72 const std::vector<BitExtent>& deflates,
88 std::vector<BitExtent>* deflates);
Dpuffer.h45 std::vector<BitExtent>* deflates) const;