PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ bytebuffer_append_bytebuffer()

void bytebuffer_append_bytebuffer ( bytebuffer_t write_to,
bytebuffer_t write_from 

Writes a uint8_t value to the buffer.

Definition at line 184 of file bytebuffer.c.

References bytebuffer_t::buf_start, bytebuffer_getlength(), bytebuffer_makeroom(), LWDEBUG, and bytebuffer_t::writecursor.

Referenced by lwgeom_write_to_buffer(), and ptarray_to_twkb_buf().

185 {
186  LWDEBUG(2,"bytebuffer_append_bytebuffer");
187  size_t size = bytebuffer_getlength(write_from);
188  bytebuffer_makeroom(write_to, size);
189  memcpy(write_to->writecursor, write_from->buf_start, size);
190  write_to->writecursor += size;
191  return;
192 }
uint8_t * writecursor
Definition: bytebuffer.h:53
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
uint8_t * buf_start
Definition: bytebuffer.h:52
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:131
size_t bytebuffer_getlength(bytebuffer_t *s)
Returns the length of the current buffer.
Definition: bytebuffer.c:337
Here is the call graph for this function:
Here is the caller graph for this function: