PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ bytebuffer_read_uvarint()

uint64_t bytebuffer_read_uvarint ( bytebuffer_t b)

Reads a unsigned varInt from the buffer.

Definition at line 361 of file bytebuffer.c.

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

362 {
363  size_t size;
364  uint64_t val = varint_u64_decode(b->readcursor, b->buf_start + b->capacity, &size);
365  b->readcursor += size;
366  return val;
367 }
uint8_t * readcursor
Definition: bytebuffer.h:43
size_t capacity
Definition: bytebuffer.h:40
uint64_t varint_u64_decode(const uint8_t *the_start, const uint8_t *the_end, size_t *size)
Definition: varint.c:109
uint8_t * buf_start
Definition: bytebuffer.h:41
Here is the call graph for this function: