PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void write_uint16 ( uint8_t **  to,
uint8_t  littleEndian,
uint16_t  v 
)
static

Definition at line 7196 of file rt_api.c.

Referenced by rt_raster_to_wkb().

7196  {
7197  assert(NULL != to);
7198 
7199  if (littleEndian) {
7200  (*to)[0] = v & 0x00FF;
7201  (*to)[1] = v >> 8;
7202  } else {
7203  (*to)[1] = v & 0x00FF;
7204  (*to)[0] = v >> 8;
7205  }
7206  *to += 2;
7207 }

Here is the caller graph for this function: