PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ bytebuffer_clear()

void bytebuffer_clear ( bytebuffer_t s)

Reset the bytebuffer_t.

Useful for starting a fresh string without the expense of freeing and re-allocating a new bytebuffer_t.

Definition at line 109 of file bytebuffer.c.

References bytebuffer_t::buf_start, bytebuffer_t::readcursor, and bytebuffer_t::writecursor.

110 {
111  s->readcursor = s->writecursor = s->buf_start;
112 }
uint8_t * writecursor
Definition: bytebuffer.h:41
uint8_t * readcursor
Definition: bytebuffer.h:42
uint8_t * buf_start
Definition: bytebuffer.h:40