PostGIS  2.5.7dev-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.

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:373
char * s
Definition: cu_in_wkt.c:23

References bytebuffer_getlength(), and s.

Here is the call graph for this function: