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

Commit f297a6aa authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6660508 from 32cbc59c to rvc-release

Change-Id: I0caee891921ada6dfd973a9eba3d25c61078175b
parents 6fcb77f2 32cbc59c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -121,8 +121,8 @@ void appendUint64(std::vector<uint8_t>& vec, uint64_t value) {
uint64_t extractUint64(const std::vector<uint8_t>& data, size_t offset) {
    uint64_t value = 0;
    for (size_t n = 0; n < sizeof(uint64_t); n++) {
        uint8_t byte = data[offset + n];
        value |= byte << (n * 8);
        uint64_t tmp = data[offset + n];
        value |= (tmp << (n * 8));
    }
    return value;
}
@@ -137,8 +137,8 @@ void appendUint32(std::vector<uint8_t>& vec, uint32_t value) {
uint32_t extractUint32(const std::vector<uint8_t>& data, size_t offset) {
    uint32_t value = 0;
    for (size_t n = 0; n < sizeof(uint32_t); n++) {
        uint8_t byte = data[offset + n];
        value |= byte << (n * 8);
        uint32_t tmp = data[offset + n];
        value |= (tmp << (n * 8));
    }
    return value;
}