MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / endArray

Method endArray

source/core/StarFormattedJson.cpp:532–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532void FormattedJsonBuilderStream::endArray() {
533 FormattedJson value = pop();
534 if (m_stack.size() > 0)
535 current().appendElement(ValueElement{value});
536 else
537 m_root = value;
538}
539
540void FormattedJsonBuilderStream::putString(String::Char const* s, size_t len) {
541 putValue(String(s, len));

Callers 1

toJsonStreamMethod · 0.45

Calls 2

appendElementMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected