PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ bytebuffer_getlength()

size_t bytebuffer_getlength ( bytebuffer_t s)

Returns the length of the current buffer.

Definition at line 337 of file bytebuffer.c.

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

Referenced by bytebuffer_append_bytebuffer(), bytebuffer_destroy(), bytebuffer_merge(), lwgeom_to_twkb_with_idlist(), and lwgeom_write_to_buffer().

338 {
339  return (size_t) (s->writecursor - s->buf_start);
340 }
uint8_t * writecursor
Definition: bytebuffer.h:53
uint8_t * buf_start
Definition: bytebuffer.h:52
Here is the caller graph for this function: