MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / dumpArray

Method dumpArray

libraries/GAMMA/gamma.cpp:160–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159
160bool GAMMA::dumpArray(Stream *str)
161{
162 if (_table == NULL) return false;
163 str->println();
164 str->print("uint8_t gamma[");
165 str->print(_size + 1);
166 str->print("] = {");
167
168 for (uint16_t i = 0; i <= _size; i++)
169 {
170 if (i % 8 == 0) str->print("\n ");
171 str->print(_table[i]);
172 if (i < _size) str->print(", ");
173 }
174 str->print("\n };\n\n");
175 return true;
176};
177
178
179// performance investigation

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64