OpenTTD Source 20241224-master-gf74b0cf984
Buffer Struct Reference

The buffer for writing a single string. More...

Inheritance diagram for Buffer:

Public Member Functions

void AppendByte (uint8_t value)
 Convenience method for adding a byte.
 
void AppendUtf8 (uint32_t value)
 Add an Unicode character encoded in UTF-8 to the buffer.
 

Detailed Description

The buffer for writing a single string.

Definition at line 177 of file strgen_base.cpp.

Member Function Documentation

◆ AppendByte()

void Buffer::AppendByte ( uint8_t  value)
inline

Convenience method for adding a byte.

Parameters
valueThe value to add.

Definition at line 182 of file strgen_base.cpp.

Referenced by LanguageWriter::WriteLang().

◆ AppendUtf8()

void Buffer::AppendUtf8 ( uint32_t  value)
inline

Add an Unicode character encoded in UTF-8 to the buffer.

Parameters
valueThe character to add.

Definition at line 191 of file strgen_base.cpp.

References GB().

Referenced by LanguageWriter::WriteLang().


The documentation for this struct was generated from the following file: