MCPcopy Create free account
hub / github.com/couchbase/fleece / writePushCallback

Function writePushCallback

Fleece/Core/JSONConverter.cc:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 }
217
218 static void writePushCallback(jsonsl_t jsn,
219 jsonsl_action_t action,
220 struct jsonsl_state_st *state,
221 const char *buf) noexcept
222 {
223 try {
224 converter(jsn)->push(state);
225 } catch (const FleeceException &x) {
226 converter(jsn)->gotException(x.code, x.what(), state->pos_begin);
227 } catch (...) {
228 converter(jsn)->gotException(InternalError, nullptr, state->pos_begin);
229 }
230 }
231
232 static void writePopCallback(jsonsl_t jsn,
233 jsonsl_action_t action,

Callers

nothing calls this directly

Calls 3

converterFunction · 0.85
gotExceptionMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected