MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / operator()

Method operator()

rapidjson/schema.h:1966–1984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1964
1965 template <typename Handler>
1966 bool operator()(Handler& handler) {
1967 GenericReader<SourceEncoding, typename SchemaDocumentType::EncodingType, StackAllocator> reader;
1968 GenericSchemaValidator<SchemaDocumentType, Handler> validator(sd_, handler);
1969 parseResult_ = reader.template Parse<parseFlags>(is_, validator);
1970
1971 isValid_ = validator.IsValid();
1972 if (isValid_) {
1973 invalidSchemaPointer_ = PointerType();
1974 invalidSchemaKeyword_ = 0;
1975 invalidDocumentPointer_ = PointerType();
1976 }
1977 else {
1978 invalidSchemaPointer_ = validator.GetInvalidSchemaPointer();
1979 invalidSchemaKeyword_ = validator.GetInvalidSchemaKeyword();
1980 invalidDocumentPointer_ = validator.GetInvalidDocumentPointer();
1981 }
1982
1983 return parseResult_;
1984 }
1985
1986 const ParseResult& GetParseResult() const { return parseResult_; }
1987 bool IsValid() const { return isValid_; }

Callers

nothing calls this directly

Calls 5

PointerTypeClass · 0.85
IsValidMethod · 0.45

Tested by

no test coverage detected