FastLED 3.10.9
Loading...
Searching...
No Matches

◆ prefixForValue()

void fl::JsonStreamWriter::prefixForValue ( )
private

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

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

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