MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / serial_write

Function serial_write

kernel/src/serial_write.hpp:43–55  ·  view source on GitHub ↗

<!-- description --> @brief Outputs a string to the serial port. <!-- inputs/outputs --> @param str the string to output @param len the total number of bytes to output

Source from the content-addressed store, hash-verified

41 /// @param len the total number of bytes to output
42 ///
43 constexpr void
44 serial_write(bsl::cstr_type const str, bsl::uintmx const len) noexcept
45 {
46 // NOLINTNEXTLINE(bsl-non-safe-integral-types-are-forbidden)
47 for (bsl::uintmx mut_i{}; mut_i < len; ++mut_i) {
48 bsl::char_type const c{str[mut_i]};
49 if ('\0' == c) {
50 return;
51 }
52
53 serial_write_c(c);
54 }
55 }
56}
57
58#endif

Callers 5

stdio_out_cstrFunction · 0.50
behavior.cppFile · 0.50
requirements.cppFile · 0.50
behavior.cppFile · 0.50
requirements.cppFile · 0.50

Calls 1

serial_write_cFunction · 0.50

Tested by

no test coverage detected