PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ bytebuffer_append_byte()

void bytebuffer_append_byte ( bytebuffer_t s,
const uint8_t  val 

Writes a uint8_t value to the buffer.

Definition at line 197 of file bytebuffer.c.

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

Referenced by lwgeom_write_to_buffer(), and ptarray_to_twkb_buf().

198 {
199  LWDEBUGF(2,"Entered bytebuffer_append_byte with value %d", val);
200  bytebuffer_makeroom(s, 1);
201  *(s->writecursor)=val;
202  s->writecursor += 1;
203  return;
204 }
uint8_t * writecursor
Definition: bytebuffer.h:42
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
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: