PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ bytebuffer_getlength()

size_t bytebuffer_getlength ( const bytebuffer_t s)

Returns the length of the current buffer.

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

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