PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ bytebuffer_read_uvarint()

uint64_t bytebuffer_read_uvarint ( bytebuffer_t s)

Reads a unsigned varInt from the buffer.

Definition at line 325 of file bytebuffer.c.

References bytebuffer_t::buf_start, bytebuffer_t::capacity, bytebuffer_t::readcursor, and varint_u64_decode().

326 {
327  size_t size;
328  uint64_t val = varint_u64_decode(b->readcursor, b->buf_start + b->capacity, &size);
329  b->readcursor += size;
330  return val;
331 }
uint64_t varint_u64_decode(const uint8_t *the_start, const uint8_t *the_end, size_t *size)
Definition: varint.c:101
Here is the call graph for this function: