PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ byte_from_twkb_state()

static uint8_t byte_from_twkb_state ( twkb_parse_state s)
static

Byte Read a byte and advance the parse state forward.

Definition at line 160 of file lwin_twkb.c.

References twkb_parse_state::pos, twkb_parse_state_advance(), and WKB_BYTE_SIZE.

Referenced by header_from_twkb_state().

161 {
162  uint8_t val = *(s->pos);
164  return val;
165 }
#define WKB_BYTE_SIZE
uint8_t * pos
Definition: lwin_twkb.c:41
static void twkb_parse_state_advance(twkb_parse_state *s, size_t next)
Check that we are not about to read off the end of the WKB array.
Definition: lwin_twkb.c:82
unsigned char uint8_t
Definition: uthash.h:79
Here is the call graph for this function:
Here is the caller graph for this function: