PostGIS  2.2.7dev-r@@SVN_REVISION@@
int64_t bytebuffer_read_varint ( bytebuffer_t b)

Reads a signed varInt from the buffer.

Definition at line 313 of file bytebuffer.c.

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

314 {
315  size_t size;
316  int64_t val = varint_s64_decode(b->readcursor, b->buf_start + b->capacity, &size);
317  b->readcursor += size;
318  return val;
319 }
uint8_t * readcursor
Definition: bytebuffer.h:54
int64_t varint_s64_decode(const uint8_t *the_start, const uint8_t *the_end, size_t *size)
Definition: varint.c:94
size_t capacity
Definition: bytebuffer.h:51
uint8_t * buf_start
Definition: bytebuffer.h:52

Here is the call graph for this function: