PostGIS  2.5.7dev-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 250 of file bytebuffer.c.

251 {
252  bytebuffer_makeroom(b, 16);
253  b->writecursor += varint_u64_encode_buf(val, b->writecursor);
254  return;
255 }
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
size_t varint_u64_encode_buf(uint64_t val, uint8_t *buf)
Definition: varint.c:76

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().

Here is the call graph for this function:
Here is the caller graph for this function: