Lines Matching refs:patch_data
124 bool ParseLz4DifffPatch(std::string_view patch_data, Lz4diffPatch* output) { in ParseLz4DifffPatch() argument
126 if (!android::base::StartsWith(patch_data, kLz4diffMagic)) { in ParseLz4DifffPatch()
128 << HexEncode(patch_data.substr(0, kLz4diffMagic.size())) in ParseLz4DifffPatch()
133 std::memcpy(patch.magic, patch_data.data(), kLz4diffMagic.size()); in ParseLz4DifffPatch()
135 patch_data.data() + kLz4diffMagic.size(), in ParseLz4DifffPatch()
144 patch_data.data() + kLz4diffMagic.size() + sizeof(patch.version), in ParseLz4DifffPatch()
148 patch_data.data() + kLz4diffHeaderSize, patch.pb_header_size)); in ParseLz4DifffPatch()
150 patch_data.substr(kLz4diffHeaderSize + patch.pb_header_size); in ParseLz4DifffPatch()
155 std::string_view patch_data, in bspatch() argument
159 CHECK_GT(patch_data.size(), 0UL); in bspatch()
163 reinterpret_cast<const uint8_t*>(patch_data.data()), in bspatch()
164 patch_data.size(), in bspatch()
173 std::string_view patch_data, in puffpatch() argument
180 reinterpret_cast<const uint8_t*>(patch_data.data()), in puffpatch()
181 patch_data.size(), in puffpatch()
333 std::string_view patch_data, in Lz4Patch() argument
336 TEST_AND_RETURN_FALSE(ParseLz4DifffPatch(patch_data, &patch)); in Lz4Patch()
341 std::string_view patch_data, in Lz4Patch() argument
344 TEST_AND_RETURN_FALSE(ParseLz4DifffPatch(patch_data, &patch)); in Lz4Patch()
348 bool Lz4Patch(const Blob& src_data, const Blob& patch_data, Blob* output) { in Lz4Patch() argument
349 return Lz4Patch(ToStringView(src_data), ToStringView(patch_data), output); in Lz4Patch()