PostGIS  2.1.10dev-r@@SVN_REVISION@@
static uint16_t read_uint16 ( const uint8_t **  from,
uint8_t  littleEndian 
)
static

Definition at line 7178 of file rt_api.c.

Referenced by read_int16(), rt_band_from_wkb(), rt_raster_deserialize(), and rt_raster_from_wkb().

7178  {
7179  uint16_t ret = 0;
7180 
7181  assert(NULL != from);
7182 
7183  if (littleEndian) {
7184  ret = (*from)[0] |
7185  (*from)[1] << 8;
7186  } else {
7187  /* big endian */
7188  ret = (*from)[0] << 8 |
7189  (*from)[1];
7190  }
7191  *from += 2;
7192  return ret;
7193 }

Here is the caller graph for this function: