Projects STRLCPY LIEF Commits 88c28b16
🤬
  • ■ ■ ■ ■ ■ ■
    src/PE/debug/CodeViewPDB.cpp
    skipped 48 lines
    49 49   if (!stream) {
    50 50   return "";
    51 51   }
     52 + 
    52 53   stream->set_endian_swap(true);
    53  - return fmt::format("{:08x}-{:04x}-{:04x}-{:04x}-{:04x}{:08x}",
    54  - stream->read<uint32_t>().value_or(0),
    55  - stream->read<uint16_t>().value_or(0),
    56  - stream->read<uint16_t>().value_or(0),
    57  - stream->read_conv<uint16_t>().value_or(0),
    58  - stream->read_conv<uint16_t>().value_or(0),
    59  - stream->read_conv<uint32_t>().value_or(0)
     54 + 
     55 + const auto chunk1 = stream->read<uint32_t>().value_or(0);
     56 + const auto chunk2 = stream->read<uint16_t>().value_or(0);
     57 + const auto chunk3 = stream->read<uint16_t>().value_or(0);
     58 + const auto chunk4 = stream->read_conv<uint16_t>().value_or(0);
     59 + const auto chunk5 = stream->read_conv<uint16_t>().value_or(0);
     60 + const auto chunk6 = stream->read_conv<uint32_t>().value_or(0);
     61 + 
     62 + return fmt::format("{:08x}-{:04x}-{:04x}-{:04x}-{:04x}{:08x}",
     63 + chunk1, chunk2, chunk3, chunk4, chunk5, chunk6
    60 64   );
    61 65  }
    62 66   
    skipped 13 lines
Please wait...
Page is in error, reload to recover