FastLED 3.10.6
Loading...
Searching...
No Matches

◆ prefixForValue()

void fl::JsonStreamWriter::prefixForValue ( )
private

Definition at line 73 of file json_stream_writer.cpp.hpp.

73 {
74 if (mPendingKey) {
75 // We just wrote a key + ':'; the value follows directly.
76 mPendingKey = false;
77 return;
78 }
79 // Element in an array (or a bare top-level value). Add a comma if this
80 // container already has a prior element.
81 if (mDepth > 0) {
82 if (mNeedComma[mDepth - 1]) {
83 writeChar(',');
84 }
85 mNeedComma[mDepth - 1] = true;
86 }
87}
void writeChar(char c) FL_NO_EXCEPT
bool mNeedComma[kMaxDepth]

References fl::FL_NO_EXCEPT, mDepth, mNeedComma, mPendingKey, and writeChar().

Referenced by beginArray(), beginObject(), value(), value(), value(), and valueNull().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: