2
0
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:
Michael Graff
1999-09-10 21:13:39 +00:00
parent 3b2b306f47
commit 07a9b8b588
4 changed files with 29 additions and 48 deletions

View File

@@ -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) {
/*