mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
implement isc_dynbuffer_reset()
This commit is contained in:
@@ -379,6 +379,14 @@ isc_dynbuffer_allocate(isc_mem_t *mctx, isc_dynbuffer_t **dynbuffer,
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
void
|
||||
isc_dynbuffer_reset(isc_dynbuffer_t *dynbuffer)
|
||||
{
|
||||
REQUIRE(VALID_DYNBUFFER(dynbuffer));
|
||||
|
||||
isc_buffer_clear(&dynbuffer->buffer);
|
||||
}
|
||||
|
||||
void
|
||||
isc_dynbuffer_free(isc_mem_t *mctx, isc_dynbuffer_t **dynbuffer)
|
||||
{
|
||||
|
Reference in New Issue
Block a user