25 if (!buf.HasData())
return;
31template <>
void GrfActionHandler<0x0C>::FileScan(
ByteReader &) { }
32template <>
void GrfActionHandler<0x0C>::SafetyScan(
ByteReader &) { }
33template <>
void GrfActionHandler<0x0C>::LabelScan(
ByteReader &) { }
34template <>
void GrfActionHandler<0x0C>::Init(
ByteReader &buf) { GRFComment(buf); }
35template <>
void GrfActionHandler<0x0C>::Reserve(
ByteReader &) { }
36template <>
void GrfActionHandler<0x0C>::Activation(
ByteReader &buf) { GRFComment(buf); }
Class to read from a NewGRF file.
std::string_view ReadString()
Read a NUL-terminated string.
Functions related to debugging.
NewGRF buffer reader definition.
NewGRF internal processing state.
A number of safeguards to prevent using unsafe methods.
Definition of base types and functions in a cross-platform compatible way.
static void StrMakeValid(Builder &builder, StringConsumer &consumer, StringValidationSettings settings)
Copies the valid (UTF-8) characters from consumer to the builder.
Functions related to low-level strings.