Helper: wrap a C string as a span for feed()
| 5 | |
| 6 | // Helper: wrap a C string as a span for feed() |
| 7 | static fl::span<const uint8_t> asSpan(const char* s, size_t len) { |
| 8 | return fl::span<const uint8_t>(reinterpret_cast<const uint8_t*>(s), len); // ok reinterpret cast |
| 9 | } |
| 10 | static fl::span<const uint8_t> asSpan(const char* s) { |
| 11 | return asSpan(s, fl::strlen(s)); |
| 12 | } |
no test coverage detected