PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ write_uint16()

void write_uint16 ( uint8_t **  to,
uint8_t  littleEndian,
uint16_t  v 
)

Definition at line 247 of file rt_serialize.c.

247  {
248  assert(NULL != to);
249 
250  if (littleEndian) {
251  (*to)[0] = v & 0x00FF;
252  (*to)[1] = v >> 8;
253  } else {
254  (*to)[1] = v & 0x00FF;
255  (*to)[0] = v >> 8;
256  }
257  *to += 2;
258 }

Referenced by rt_raster_to_wkb().

Here is the caller graph for this function: