| 137 | } |
| 138 | |
| 139 | Expect<void> WriteName(std::ostream &OS, std::string_view Data) noexcept { |
| 140 | WriteU32(OS, static_cast<uint32_t>(Data.size())); |
| 141 | for (const auto C : Data) { |
| 142 | WriteByte(OS, static_cast<uint8_t>(C)); |
| 143 | } |
| 144 | return {}; |
| 145 | } |
| 146 | |
| 147 | inline constexpr bool startsWith(std::string_view Value, |
| 148 | std::string_view Prefix) noexcept { |
no test coverage detected