MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / readBEWord

Function readBEWord

Source/stdafx.hpp:65–69  ·  view source on GitHub ↗

Read a BE word from the buffer

Source from the content-addressed store, hash-verified

63
64// Read a BE word from the buffer
65inline uint16 readBEWord( const void *buffer ) {
66 const uint8* bytes = (const uint8*) buffer;
67
68 return uint16((bytes[0] << 8) + bytes[1]);
69}
70
71// Write a LE word in BE
72inline void writeBEWord( const void *buffer, uint16 pValue ) {

Callers 12

LoadPalette_AmigaMethod · 0.85
setupNoteMethod · 0.85
setupInstrumentMethod · 0.85
Load_Hill_DataMethod · 0.85
DecodeIFFMethod · 0.85
DecodePaletteMethod · 0.85
Map_Tile_DrawMethod · 0.85
MapTiles_DrawMethod · 0.85
Hill_Prepare_OverlaysMethod · 0.85
DrawPixels_16Method · 0.85
loadCF1MapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected