MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / read_next

Function read_next

src/toml.hpp:12559–12576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

read_next_blockFunction · 0.85

Tested by

no test coverage detected