PostGIS  2.2.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 121 of file bytebuffer.c.

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

122 {
123  s->readcursor = s->writecursor = s->buf_start;
124 }
uint8_t * writecursor
Definition: bytebuffer.h:53
uint8_t * readcursor
Definition: bytebuffer.h:54
uint8_t * buf_start
Definition: bytebuffer.h:52