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

◆ read_uint16()

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

Definition at line 230 of file rt_serialize.c.

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

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

Here is the caller graph for this function: