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

Function SkipStringChoice

src/strings.cpp:777–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777static void SkipStringChoice(StringConsumer &consumer)
778{
779 uint n = consumer.ReadUint8();
780 uint len = 0;
781 for (uint i = 0; i != n; i++) {
782 len += consumer.ReadUint8();
783 }
784 consumer.Skip(len);
785}
786
787static void ParseStringChoice(StringConsumer &consumer, uint form, StringBuilder &builder)
788{

Callers 1

FormatStringFunction · 0.85

Calls 2

ReadUint8Method · 0.80
SkipMethod · 0.45

Tested by

no test coverage detected