MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / ByteSwap_2301

Method ByteSwap_2301

Source/Utility/ROMFile.cpp:144–152  ·  view source on GitHub ↗

Swap bytes from 37 80 40 12 to 40 12 37 80

Source from the content-addressed store, hash-verified

142// Swap bytes from 37 80 40 12
143// to 40 12 37 80
144void ROMFile::ByteSwap_2301( void * p_bytes, u32 length )
145{
146 u32* p = (u32*)p_bytes;
147 u32* maxp = (u32*)((u8*)p_bytes + length);
148 for(; p < maxp; p++)
149 {
150 std::swap(((u16*)p)[0], ((u16*)p)[1]);
151 }
152}
153
154
155// Swap bytes from 80 37 12 40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected