MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / jumpTo

Method jumpTo

MonaCore/sources/JSONReader.cpp:316–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool JSONReader::jumpTo(char marker) {
317 const UInt8* cur(current());
318 if (!cur || *cur != marker) {
319 ERROR("JSON malformed, marker ", marker , " unfound");
320 packet.next(packet.available());
321 return false;
322 }
323 return cur != NULL;
324}
325
326const UInt8* JSONReader::current() {
327 while(packet.available() && isspace(*packet.current()))

Callers

nothing calls this directly

Calls 2

nextMethod · 0.45
availableMethod · 0.45

Tested by

no test coverage detected