PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ bytebuffer_append_varint()

void bytebuffer_append_varint ( bytebuffer_t b,
const int64_t  val 
)

Writes a signed varInt to the buffer.

Definition at line 239 of file bytebuffer.c.

240 {
241  bytebuffer_makeroom(b, 16);
243  return;
244 }
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
uint8_t * writecursor
Definition: bytebuffer.h:42
size_t varint_s64_encode_buf(int64_t val, uint8_t *buf)
Definition: varint.c:89

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

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