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

Function FLEncodeJSONDelta

Fleece/API_Impl/Fleece.cc:804–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804bool FLEncodeJSONDelta(FLValue old, FLValue nuu, FLEncoder jsonEncoder) FLAPI {
805 try {
806 JSONEncoder *enc = jsonEncoder->jsonEncoder.get();
807 precondition(enc); //TODO: Support encoding to Fleece
808 JSONDelta::create(old, nuu, *enc);
809 return true;
810 } catch (const std::exception &x) {
811 jsonEncoder->recordException(x);
812 return false;
813 }
814}
815
816
817FLSliceResult FLApplyJSONDelta(FLValue old, FLSlice jsonDelta, FLError *outError) FLAPI {

Callers 1

createMethod · 0.85

Calls 2

recordExceptionMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected