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

Function FLEncoder_Finish

Fleece/API_Impl/Fleece.cc:743–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741
742
743FLSliceResult FLEncoder_Finish(FLEncoder e, FLError *outError) FLAPI {
744 if (!e->hasError()) {
745 try {
746 return toSliceResult(ENCODER_DO(e, finish())); // finish() can throw
747 } catch (const std::exception &x) {
748 e->recordException(x);
749 }
750 }
751 // Failure:
752 if (outError)
753 *outError = e->errorCode;
754 e->reset();
755 return {nullptr, 0};
756}
757
758
759#pragma mark - DOCUMENTS

Callers 2

finishMethod · 0.85
FLData_ConvertJSONFunction · 0.85

Calls 4

toSliceResultFunction · 0.85
hasErrorMethod · 0.80
recordExceptionMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected