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

Method addingKey

Fleece/Core/Encoder.cc:601–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599#pragma mark - ARRAYS / DICTIONARIES:
600
601 void Encoder::addingKey() {
602 if (_usuallyFalse(!_blockedOnKey)) {
603 if (_items->tag == kDictTag)
604 FleeceException::_throw(EncodeError, "need a value after a key");
605 else
606 FleeceException::_throw(EncodeError, "not writing a dictionary");
607 }
608 _blockedOnKey = false;
609 }
610
611 void Encoder::writeKey(slice s) {
612 int encoded;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected