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

Function FLEncodeApplyingJSONDelta

Fleece/API_Impl/Fleece.cc:824–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824bool FLEncodeApplyingJSONDelta(FLValue old, FLSlice jsonDelta, FLEncoder encoder) FLAPI {
825 try {
826 Encoder *enc = encoder->fleeceEncoder.get();
827 if (!enc)
828 FleeceException::_throw(EncodeError, "FLEncodeApplyingJSONDelta cannot encode JSON");
829 JSONDelta::apply(old, jsonDelta, false, *enc);
830 return true;
831 } catch (const std::exception &x) {
832 encoder->recordException(x);
833 return false;
834 }
835}

Callers 1

applyMethod · 0.85

Calls 2

recordExceptionMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected