| 12557 | } |
| 12558 | |
| 12559 | TOML_NODISCARD |
| 12560 | const utf8_codepoint* read_next() noexcept(!TOML_COMPILER_HAS_EXCEPTIONS) final |
| 12561 | { |
| 12562 | utf8_reader_error_check({}); |
| 12563 | |
| 12564 | if (codepoints_.current == codepoints_.count) |
| 12565 | { |
| 12566 | if TOML_UNLIKELY(!stream_ || !read_next_block()) |
| 12567 | return nullptr; |
| 12568 | |
| 12569 | TOML_ASSERT_ASSUME(!codepoints_.current); |
| 12570 | } |
| 12571 | TOML_ASSERT_ASSUME(codepoints_.count); |
| 12572 | TOML_ASSERT_ASSUME(codepoints_.count <= block_capacity); |
| 12573 | TOML_ASSERT_ASSUME(codepoints_.current < codepoints_.count); |
| 12574 | |
| 12575 | return &codepoints_.buffer[codepoints_.current++]; |
| 12576 | } |
| 12577 | |
| 12578 | TOML_NODISCARD |
| 12579 | bool peek_eof() const noexcept(!TOML_COMPILER_HAS_EXCEPTIONS) final |
nothing calls this directly
no test coverage detected