OpenTTD Source  20241121-master-g67a0fccfad
ByteReader Class Reference

Class to read from a NewGRF file. More...

Public Member Functions

 ByteReader (uint8_t *data, uint8_t *end)
 
uint8_t * ReadBytes (size_t size)
 
uint8_t ReadByte ()
 
uint16_t ReadWord ()
 
uint16_t ReadExtendedByte ()
 
uint32_t ReadDWord ()
 
uint32_t PeekDWord ()
 
uint32_t ReadVarSize (uint8_t size)
 
std::string_view ReadString ()
 
size_t Remaining () const
 
bool HasData (size_t count=1) const
 
void Skip (size_t len)
 

Protected Attributes

uint8_t * data
 
uint8_t * end
 

Detailed Description

Class to read from a NewGRF file.

Definition at line 216 of file newgrf.cpp.


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