StudyGlib/app/src/main/cpp/study/buf.c
/** 
 * vips_buf_set_static:
 * @buf: the buffer
 * @base: the start of the memory area to use for storage
 * @mx: the size of the storage area
 *
 * Attach the buffer to a static memory area. The buffer needs to have been
 * initialised. The memory area needs to be at least 4 bytes long.
 */
@buf: the buffer
@base: the start of the memory area to use for storage
@mx: the size of the storage area

Attach the buffer to a static memory area. The buffer needs to have been
initialised. The memory area needs to be at least 4 bytes long.
@buf : the buffer @base : the start of the memory area to use for storage @mx : the size of the storage area Attach the buffer to a static memory area . The buffer needs to have been initialised . The memory area needs to be at least 4 bytes long .
void
vips_buf_set_static( VipsBuf *buf, char *base, int mx )
{
	g_assert( mx >= 4 );
	vips_buf_destroy( buf );
	buf->base = base;
	buf->mx = mx;
	buf->dynamic = FALSE;
	vips_buf_rewind( buf );
}
void vips_buf_set_static ( VipsBuf * buf , char * base , int mx ) { g_assert ( mx >= 4 ) ; vips_buf_destroy ( buf ) ; buf -> base = base ; buf -> mx = mx ; buf -> dynamic = FALSE ; vips_buf_rewind ( buf ) ; }
vips_buf_set_static:
 @buf: the buffer
 @base: the start of the memory area to use for storage
 @mx: the size of the storage area
vips_buf_set_static : @buf : the buffer @base : the start of the memory area to use for storage @mx : the size of the storage area