MCPcopy Create free account
hub / github.com/FastLED/FastLED / writeChar

Function writeChar

src/fl/wdt/watchdog.cpp.hpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55inline fl::size writeChar(fl::span<char> out, char c) FL_NOEXCEPT {
56 if (out.size() == 0) return 0;
57 out[0] = c;
58 return 1;
59}
60
61inline fl::size writeNulIfRoom(fl::span<char> out, fl::size written) FL_NOEXCEPT {
62 if (written < out.size()) out[written] = '\0';

Callers 1

describeMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected