Helper: wrap a C string as a span for feed()
| 8 | |
| 9 | // Helper: wrap a C string as a span for feed() |
| 10 | static fl::span<const uint8_t> asSpan(const char* s) { |
| 11 | return fl::span<const uint8_t>( |
| 12 | reinterpret_cast<const uint8_t*>(s), fl::strlen(s)); // ok reinterpret cast |
| 13 | } |
| 14 | |
| 15 | using namespace fl; |
| 16 |
no test coverage detected