PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ bytebuffer_getlength()

size_t bytebuffer_getlength ( const bytebuffer_t s)

Returns the length of the current buffer.

Definition at line 373 of file bytebuffer.c.

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

Referenced by bytebuffer_append_bytebuffer(), bytebuffer_get_buffer(), bytebuffer_get_buffer_copy(), bytebuffer_merge(), and lwgeom_write_to_buffer().

374 {
375  return (size_t) (s->writecursor - s->buf_start);
376 }
uint8_t * writecursor
Definition: bytebuffer.h:42
uint8_t * buf_start
Definition: bytebuffer.h:41
Here is the caller graph for this function: