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

Method assertLengthCorrect

Fleece/Support/Writer.cc:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97#if DEBUG
98 void Writer::assertLengthCorrect() const {
99 if (!_outputFile) {
100 size_t len = 0;
101 forEachChunk([&](slice chunk) {
102 len += chunk.size;
103 });
104 assert_postcondition(len == length());
105 }
106 }
107#endif
108
109

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected