MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / File_Read_LE16

Function File_Read_LE16

src/file.c:737–742  ·  view source on GitHub ↗

* Read a 16bit unsigned from the file (written on disk in Little endian) * * @param index The index given by File_Open() of the file. * @return The integer read. */

Source from the content-addressed store, hash-verified

735 * @return The integer read.
736 */
737uint16 File_Read_LE16(uint8 index)
738{
739 uint8 buffer[2];
740 File_Read(index, buffer, sizeof(buffer));
741 return READ_LE_UINT16(buffer);
742}
743
744/**
745 * Read a 32bit unsigned from the file (written on disk in Little endian)

Callers 3

GameOptions_LoadFunction · 0.85
WSA_LoadFileFunction · 0.85
Sprites_LoadCPSFileFunction · 0.85

Calls 1

File_ReadFunction · 0.85

Tested by

no test coverage detected