PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ bytebuffer_append_uvarint()

void bytebuffer_append_uvarint ( bytebuffer_t s,
const uint64_t  val 

Writes a unsigned varInt to the buffer.

Definition at line 200 of file bytebuffer.c.

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

Referenced by lwcollection_to_twkb_buf(), lwgeom_write_to_buffer(), lwmulti_to_twkb_buf(), lwpoly_to_twkb_buf(), and ptarray_to_twkb_buf().

201 {
202  size_t size;
203  bytebuffer_makeroom(b, 16);
204  size = varint_u64_encode_buf(val, b->writecursor);
205  b->writecursor += size;
206  return;
207 }
size_t varint_u64_encode_buf(uint64_t val, uint8_t *buf)
Definition: varint.c:76
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: