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

Method pushError

json/jsoncpp.cpp:1090–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088}
1089
1090bool Reader::pushError(const Value& value, const JSONCPP_STRING& message) {
1091 ptrdiff_t const length = end_ - begin_;
1092 if (value.getOffsetStart() > length || value.getOffsetLimit() > length)
1093 return false;
1094 Token token;
1095 token.type_ = tokenError;
1096 token.start_ = begin_ + value.getOffsetStart();
1097 token.end_ = end_ + value.getOffsetLimit();
1098 ErrorInfo info;
1099 info.token_ = token;
1100 info.message_ = message;
1101 info.extra_ = 0;
1102 errors_.push_back(info);
1103 return true;
1104}
1105
1106bool Reader::pushError(const Value& value,
1107 const JSONCPP_STRING& message,

Callers

nothing calls this directly

Calls 3

getOffsetStartMethod · 0.80
getOffsetLimitMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected