PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ write_uint16()

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

Definition at line 248 of file rt_serialize.c.

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

Referenced by rt_raster_to_wkb().

Here is the caller graph for this function: