PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ byte_from_twkb_state()

static uint8_t byte_from_twkb_state ( twkb_parse_state s)

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 }
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
Here is the call graph for this function:
Here is the caller graph for this function: