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

Function writeBEWord

Source/stdafx.hpp:72–77  ·  view source on GitHub ↗

Write a LE word in BE

Source from the content-addressed store, hash-verified

70
71// Write a LE word in BE
72inline void writeBEWord( const void *buffer, uint16 pValue ) {
73 uint8* bytes = (uint8*) buffer;
74
75 bytes[0] = (uint8) (pValue >> 8);
76 bytes[1] = (uint8) (pValue & 0xFF);
77}
78
79// Read a LE DWord in BE
80inline uint32 readBEDWord( const void *buffer ) {

Callers 4

Load_Hill_DataMethod · 0.85
Hill_Prepare_OverlaysMethod · 0.85
saveHeaderMethod · 0.85
saveCF1SpritesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected