PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ bytebuffer_get_buffer()

const uint8_t* bytebuffer_get_buffer ( const bytebuffer_t s,
size_t *  buffer_length 
)

Returns a read-only reference to the internal buffer.

Definition at line 185 of file bytebuffer.c.

References bytebuffer_t::buf_start, and bytebuffer_getlength().

186 {
187  if ( buffer_length )
188  *buffer_length = bytebuffer_getlength(s);
189  return s->buf_start;
190 }
size_t bytebuffer_getlength(const bytebuffer_t *s)
Returns the length of the current buffer.
Definition: bytebuffer.c:377
uint8_t * buf_start
Definition: bytebuffer.h:41
Here is the call graph for this function: