Encode an array of characters. \param str The string of characters to be encoded.
| 110 | /// Encode an array of characters. |
| 111 | /// \param str The string of characters to be encoded. |
| 112 | consteval void encode(char const (&str)[N]) noexcept { |
| 113 | std::array<std::uint8_t, N> buffer; |
| 114 | std::copy(str, str + N, buffer.begin()); |
| 115 | algos_.encode(0, buffer.begin(), buffer.end()); |
| 116 | std::copy(buffer.begin(), buffer.end(), data_.begin()); |
| 117 | } |
| 118 | |
| 119 | /// Decode an array of characters in-place. |
| 120 | void decode_inplace() noexcept { |
nothing calls this directly
no outgoing calls
no test coverage detected