PostGIS  2.3.7dev-r@@SVN_REVISION@@
void bytebuffer_append_varint ( bytebuffer_t b,
const int64_t  val 
)

Writes a signed varInt to the buffer.

Definition at line 187 of file bytebuffer.c.

References bytebuffer_makeroom(), varint_s64_encode_buf(), and bytebuffer_t::writecursor.

Referenced by lwcollection_to_twkb_buf(), lwmulti_to_twkb_buf(), ptarray_to_twkb_buf(), and write_bbox().

188 {
189  size_t size;
190  bytebuffer_makeroom(b, 16);
191  size = varint_s64_encode_buf(val, b->writecursor);
192  b->writecursor += size;
193  return;
194 }
uint8_t * writecursor
Definition: bytebuffer.h:41
size_t varint_s64_encode_buf(int64_t val, uint8_t *buf)
Definition: varint.c:89
static void bytebuffer_makeroom(bytebuffer_t *s, size_t size_to_add)
If necessary, expand the bytebuffer_t internal buffer to accomodate the specified additional size...
Definition: bytebuffer.c:119

Here is the call graph for this function:

Here is the caller graph for this function: