| 38 | } |
| 39 | |
| 40 | [[nodiscard]] const std::byte* StringBlock::data() const noexcept { |
| 41 | // Note: reinterpret_cast is necessary here for pointer conversion from |
| 42 | // const char* (std::string::data()) to const std::byte*. std::bit_cast |
| 43 | // cannot be used for pointer-to-pointer conversions, only for value |
| 44 | // conversions of same-sized types. Using std::byte* for semantic clarity |
| 45 | // that this is raw byte storage. |
| 46 | return reinterpret_cast<const std::byte*>(data_.data()); |
| 47 | } |
| 48 | |
| 49 | MessageDecoder::MessageDecoder(ITransport& transport) : transport_{transport} {} |
| 50 |
no outgoing calls
no test coverage detected