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

Function SwapWord

maptree.c:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45static int treeAddShapeId(treeObj *tree, int id, rectObj rect);
46
47static void SwapWord( int length, void * wordP )
48{
49 int i;
50 uchar temp;
51
52 for( i=0; i < length/2; i++ )
53 {
54 temp = ((uchar *) wordP)[i];
55 ((uchar *)wordP)[i] = ((uchar *) wordP)[length-i-1];
56 ((uchar *) wordP)[length-i-1] = temp;
57 }
58}
59
60static void * SfRealloc( void * pMem, int nNewSize )
61

Callers 5

msSHPDiskTreeOpenFunction · 0.70
searchDiskTreeNodeFunction · 0.70
readTreeNodeFunction · 0.70
writeTreeNodeFunction · 0.70
msWriteTreeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected