MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / peek

Method peek

src/ifcparse/FileReader.cpp:286–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284size_t FileReader::size() const { return impl_->size(); }
285
286char FileReader::peek() const {
287 if (cursor_ >= impl_->size()) throw std::out_of_range("peek at EOF");
288 return impl_->get(cursor_);
289}
290
291void FileReader::increment(size_t n) {
292 if (cursor_ + n > impl_->size()) throw std::out_of_range("increment past EOF");

Callers 6

read_stringFunction · 0.80
skipMethod · 0.80
skipWhitespaceMethod · 0.80
skipCommentMethod · 0.80
NextMethod · 0.80
TokenStringMethod · 0.80

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected