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

◆ read_uint16()

uint16_t read_uint16 ( const uint8_t **  from,
uint8_t  littleEndian 
)

Definition at line 229 of file rt_serialize.c.

229 {
230 uint16_t ret = 0;
231
232 assert(NULL != from);
233
234 if (littleEndian) {
235 ret = (*from)[0] |
236 (*from)[1] << 8;
237 } else {
238 /* big endian */
239 ret = (*from)[0] << 8 |
240 (*from)[1];
241 }
242 *from += 2;
243 return ret;
244}

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

Here is the caller graph for this function: