MCPcopy Index your code
hub / github.com/MapServer/MapServer / SwapWord

Function SwapWord

mapshape.c:58–68  ·  view source on GitHub ↗

/ SwapWord() */ / Swap a 2, 4 or 8 byte word. */ /

Source from the content-addressed store, hash-verified

56/* Swap a 2, 4 or 8 byte word. */
57/************************************************************************/
58static void SwapWord( int length, void * wordP )
59{
60 int i;
61 uchar temp;
62
63 for( i=0; i < length/2; i++ ) {
64 temp = ((uchar *) wordP)[i];
65 ((uchar *)wordP)[i] = ((uchar *) wordP)[length-i-1];
66 ((uchar *) wordP)[length-i-1] = temp;
67 }
68}
69
70/************************************************************************/
71/* SfRealloc() */

Callers 9

writeHeaderFunction · 0.70
msSHPOpenFunction · 0.70
msSHPCreateFunction · 0.70
writeBoundsFunction · 0.70
msSHPWritePointFunction · 0.70
msSHPWriteShapeFunction · 0.70
msSHPReadPointFunction · 0.70
msSHPReadShapeFunction · 0.70
msSHPReadBoundsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected