MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / decodeString

Method decodeString

json/jsoncpp.cpp:868–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866}
867
868bool Reader::decodeString(Token& token) {
869 JSONCPP_STRING decoded_string;
870 if (!decodeString(token, decoded_string))
871 return false;
872 Value decoded(decoded_string);
873 currentValue().swapPayload(decoded);
874 currentValue().setOffsetStart(token.start_ - begin_);
875 currentValue().setOffsetLimit(token.end_ - begin_);
876 return true;
877}
878
879bool Reader::decodeString(Token& token, JSONCPP_STRING& decoded) {
880 decoded.reserve(static_cast<size_t>(token.end_ - token.start_ - 2));

Callers

nothing calls this directly

Calls 4

codePointToUTF8Function · 0.85
swapPayloadMethod · 0.80
setOffsetStartMethod · 0.80
setOffsetLimitMethod · 0.80

Tested by

no test coverage detected