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

Function tool_EndianSwap

Source/stdafx.cpp:49–61  ·  view source on GitHub ↗

* * @param pBuffer * @param pSize Number of words */

Source from the content-addressed store, hash-verified

47 * @param pSize Number of words
48 */
49void tool_EndianSwap(uint8 *pBuffer, size_t pSize) {
50 uint8 *pDest = pBuffer;
51
52 pSize /= 2;
53
54 while (pSize--) {
55 uint8 al = *pBuffer++;
56 uint8 ah = *pBuffer++;
57
58 *pDest++ = ah;
59 *pDest++ = al;
60 }
61}
62
63std::string tool_StripLeadingZero(const std::string& pValue) {
64 std::string Final = pValue;

Callers 4

Map_Load_ResourcesMethod · 0.85
loadCF1MapMethod · 0.85
loadCF1SptMethod · 0.85
saveCF1MapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected