Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95cc6b6f authored by Daniel Zheng's avatar Daniel Zheng
Browse files

libsnapshot: update resume offset calculation

Update resume offset calculation to use function call

Test: cow_api_test
Change-Id: I7a9a86dc007110d02d889d1e59b24c3068b8d9e9
parent 191af795
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {