PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
void bytebuffer_init_with_size | ( | bytebuffer_t * | s, |
size_t | size | ||
) |
Allocate just the internal buffer of an existing bytebuffer_t struct.
Useful for allocating short-lived bytebuffers off the stack.
Definition at line 71 of file bytebuffer.c.
References bytebuffer_t::buf_start, bytebuffer_t::buf_static, BYTEBUFFER_STATICSIZE, bytebuffer_t::capacity, lwalloc(), bytebuffer_t::readcursor, and bytebuffer_t::writecursor.
Referenced by lwgeom_to_twkb_with_idlist(), lwgeom_write_to_buffer(), and ptarray_to_twkb_buf().