MCPcopy Create free account
hub / github.com/andrivet/ADVobfuscator / decode

Method decode

include/advobfuscator/string.h:86–94  ·  view source on GitHub ↗

Decode the obfuscated string

Source from the content-addressed store, hash-verified

84
85 /// Decode the obfuscated string
86 [[nodiscard]] constexpr std::string decode() const {
87 std::array<std::uint8_t, N> buffer;
88 std::copy(data_.begin(), data_.end(), buffer.begin());
89 if(obfuscated_) algos_.decode(0, buffer.begin(), buffer.end());
90 std::string str;
91 str.resize(N - 1);
92 std::copy(buffer.begin(), buffer.end() - 1, str.begin());
93 return str;
94 }
95
96 /// Encoded or decoded data.
97 std::array<char, N> data_{};

Callers 1

decode_inplaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected