CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
Loading...
Searching...
No Matches
Classes | Functions
th.h File Reference
#include "config.h"
#include <vector>

Go to the source code of this file.

Classes

class  link_list
 Generic linked list class (for inheriting from) More...
 
class  th_string_list
 Theme Hospital localised string list. More...
 

Functions

uint32_t bytes_to_uint32_le (const uint8_t *bytes)
 
uint16_t bytes_to_uint16_le (const uint8_t *bytes)
 

Function Documentation

◆ bytes_to_uint16_le()

uint16_t bytes_to_uint16_le ( const uint8_t *  bytes)
inline

Convert 2 bytes representing uint16 in little endian representation into a uint16.

Parameters
bytesA pointer to the first of 2 sequential bytes in memory making up the uint16.

◆ bytes_to_uint32_le()

uint32_t bytes_to_uint32_le ( const uint8_t *  bytes)
inline

Convert 4 bytes representing uint32 in little endian representation into a uint32.

Parameters
bytesA pointer to the first of 4 sequential bytes in memory making up the uint32.