MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetCurPosition

Method SetCurPosition

src/string.cpp:765–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763 }
764
765 size_t SetCurPosition(size_t pos) override
766 {
767 this->cur_pos = this->string.GetIterAtByte(pos);
768 return this->cur_pos.GetByteOffset();
769 }
770
771 size_t Next(IterType what) override
772 {

Callers

nothing calls this directly

Calls 2

GetIterAtByteMethod · 0.80
GetByteOffsetMethod · 0.80

Tested by

no test coverage detected