PostGIS  2.4.9dev-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 130 of file bytebuffer.c.

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

131 {
132  s->readcursor = s->writecursor = s->buf_start;
133 }
uint8_t * writecursor
Definition: bytebuffer.h:42
uint8_t * readcursor
Definition: bytebuffer.h:43
uint8_t * buf_start
Definition: bytebuffer.h:41