libsnapshot: update resume offset calculation

Update resume offset calculation to use function call

Test: cow_api_test
Change-Id: I7a9a86dc007110d02d889d1e59b24c3068b8d9e9
This commit is contained in:
Daniel Zheng 2023-11-16 11:38:19 -08:00
parent 191af79538
commit 95cc6b6f01

View file

@ -79,7 +79,7 @@ bool CowParserV3::ReadResumeBuffer(borrowed_fd fd) {
return android::base::ReadFullyAtOffset(fd, resume_points_->data(),
header_.resume_point_count * sizeof(ResumePoint),
header_.prefix.header_size + header_.buffer_size);
GetResumeOffset(header_));
}
std::optional<uint32_t> CowParserV3::FindResumeOp(const uint64_t label) {