MCPcopy Create free account
hub / github.com/Samsung/ONE / parseFromStream

Function parseFromStream

runtime/3rdparty/jsoncpp/jsoncpp.cpp:2422–2432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2420// global functions
2421
2422bool parseFromStream(CharReader::Factory const &fact, IStream &sin, Value *root, String *errs)
2423{
2424 OStringStream ssin;
2425 ssin << sin.rdbuf();
2426 String doc = ssin.str();
2427 char const *begin = doc.data();
2428 char const *end = begin + doc.size();
2429 // Note that we do not actually need a null-terminator.
2430 CharReaderPtr const reader(fact.newCharReader());
2431 return reader->parse(begin, end, root, errs);
2432}
2433
2434IStream &operator>>(IStream &sin, Value &root)
2435{

Callers 5

load_jsonFunction · 0.85
readFunction · 0.85
read_jsonFunction · 0.85
initMethod · 0.85
jsoncpp.cppFile · 0.85

Calls 5

newCharReaderMethod · 0.80
strMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
parseMethod · 0.45

Tested by 1

read_jsonFunction · 0.68