<!-- 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
| 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 |
no test coverage detected