PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ bytebuffer_read_varint()

int64_t bytebuffer_read_varint ( bytebuffer_t b)

Reads a signed varInt from the buffer.

Definition at line 353 of file bytebuffer.c.

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

354 {
355  size_t size;
356  int64_t val = varint_s64_decode(b->readcursor, b->buf_start + b->capacity, &size);
357  b->readcursor += size;
358  return val;
359 }
uint8_t * readcursor
Definition: bytebuffer.h:43
int64_t varint_s64_decode(const uint8_t *the_start, const uint8_t *the_end, size_t *size)
Definition: varint.c:102
size_t capacity
Definition: bytebuffer.h:40
uint8_t * buf_start
Definition: bytebuffer.h:41
Here is the call graph for this function: