PostGIS  2.2.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 146 of file lwin_twkb.c.

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

Referenced by header_from_twkb_state().

147 {
148  uint8_t val = *(s->pos);
150  return val;
151 }
uint8_t * pos
Definition: lwin_twkb.c:27
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:68
Here is the call graph for this function:
Here is the caller graph for this function: