mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Make a few helper macros which will return lengths of regions rather than
requiring an isc_region_t to fill in. Use these macros in a few places.
This commit is contained in:
@@ -99,14 +99,6 @@ isc_buffer_used(isc_buffer_t *b, isc_region_t *r) {
|
||||
r->length = b->used;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
isc_buffer_usedcount(isc_buffer_t *b)
|
||||
{
|
||||
REQUIRE(ISC_BUFFER_VALID(b));
|
||||
|
||||
return (b->used);
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_available(isc_buffer_t *b, isc_region_t *r) {
|
||||
/*
|
||||
@@ -120,14 +112,6 @@ isc_buffer_available(isc_buffer_t *b, isc_region_t *r) {
|
||||
r->length = b->length - b->used;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
isc_buffer_availablecount(isc_buffer_t *b)
|
||||
{
|
||||
REQUIRE(ISC_BUFFER_VALID(b));
|
||||
|
||||
return (b->length - b->used);
|
||||
}
|
||||
|
||||
void
|
||||
isc_buffer_add(isc_buffer_t *b, unsigned int n) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user