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

Method setComment

json/jsoncpp.cpp:2684–2695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2682}
2683
2684void Value::CommentInfo::setComment(const char* text, size_t len) {
2685 if (comment_) {
2686 releaseStringValue(comment_, 0u);
2687 comment_ = 0;
2688 }
2689 JSON_ASSERT(text != 0);
2690 JSON_ASSERT_MESSAGE(
2691 text[0] == '\0' || text[0] == '/',
2692 "in Json::Value::setComment(): Comments must start with /");
2693 // It seems that /**/ style comments are acceptable as well.
2694 comment_ = duplicateStringValue(text, len);
2695}
2696
2697// //////////////////////////////////////////////////////////////////
2698// //////////////////////////////////////////////////////////////////

Callers 4

parseMethod · 0.80
readValueMethod · 0.80
addCommentMethod · 0.80
dupMetaMethod · 0.80

Calls 4

releaseStringValueFunction · 0.85
duplicateStringValueFunction · 0.85
c_strMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected