PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ twkb_parse_state_uvarint()

static uint64_t twkb_parse_state_uvarint ( twkb_parse_state s)
inlinestatic

Definition at line 101 of file lwin_twkb.c.

References twkb_parse_state::pos, twkb_parse_state::twkb_end, twkb_parse_state_advance(), and varint_u64_decode().

Referenced by header_from_twkb_state(), lwcollection_from_twkb_state(), lwline_from_twkb_state(), lwmultiline_from_twkb_state(), lwmultipoint_from_twkb_state(), lwmultipoly_from_twkb_state(), and lwpoly_from_twkb_state().

102 {
103  size_t size;
104  uint64_t val = varint_u64_decode(s->pos, s->twkb_end, &size);
105  twkb_parse_state_advance(s, size);
106  return val;
107 }
uint8_t * pos
Definition: lwin_twkb.c:41
uint8_t * twkb_end
Definition: lwin_twkb.c:40
uint64_t varint_u64_decode(const uint8_t *the_start, const uint8_t *the_end, size_t *size)
Definition: varint.c:109
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: