PostGIS  2.4.9dev-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 252 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().

253 {
254  size_t size;
255  bytebuffer_makeroom(b, 16);
256  size = varint_u64_encode_buf(val, b->writecursor);
257  b->writecursor += size;
258  return;
259 }
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:140
Here is the call graph for this function:
Here is the caller graph for this function: