PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ SwapWord()

static void SwapWord ( int  length,
void *  wordP 
)
static

Definition at line 110 of file shpopen.c.

112 {
113  int i;
114  uchar temp;
115 
116  for( i=0; i < length/2; i++ )
117  {
118  temp = STATIC_CAST(uchar*, wordP)[i];
119  STATIC_CAST(uchar*, wordP)[i] = STATIC_CAST(uchar*, wordP)[length-i-1];
120  STATIC_CAST(uchar*, wordP)[length-i-1] = temp;
121  }
122 }
unsigned char uchar
Definition: shpopen.c:49
#define STATIC_CAST(type, x)
Definition: shpopen.c:100

References STATIC_CAST.

Referenced by _SHPSetBounds(), if(), SHPCreateLL(), SHPOpenLL(), SHPReadObject(), SHPRestoreSHX(), SHPWriteHeader(), and SHPWriteObject().

Here is the caller graph for this function: