PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ bytebuffer_getlength()

size_t bytebuffer_getlength ( bytebuffer_t s)

Returns the length of the current buffer.

Definition at line 325 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().

326 {
327  return (size_t) (s->writecursor - s->buf_start);
328 }
uint8_t * writecursor
Definition: bytebuffer.h:41
uint8_t * buf_start
Definition: bytebuffer.h:40
Here is the caller graph for this function: