Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
84d79ecd
Commit
84d79ecd
authored
Apr 29, 1999
by
Michael Graff
Browse files
implement isc_dynbuffer_reset()
parent
c45abd11
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/isc/buffer.c
View file @
84d79ecd
...
...
@@ -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
)
{
...
...
lib/isc/include/isc/buffer.h
View file @
84d79ecd
...
...
@@ -171,6 +171,13 @@ isc_dynbuffer_allocate(isc_mem_t *mctx, isc_dynbuffer_t **dynbuffer,
* ISC_R_NOMEMORY - no memory available
*/
void
isc_dynbuffer_reset
(
isc_dynbuffer_t
*
dynbuffer
);
/*
* Reset the dynamic buffer to the initial state
*/
void
isc_dynbuffer_free
(
isc_mem_t
*
mctx
,
isc_dynbuffer_t
**
dynbuffer
);
/*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment