Lines Matching refs:bitstring
18 /* $Id: bitstring.c,v 1.17 2007/06/19 23:47:17 tbox Exp $ */
27 #include <isc/bitstring.h>
43 isc_bitstring_init(isc_bitstring_t *bitstring, unsigned char *data,
47 * Make 'bitstring' refer to the bitstring of 'size' bits starting
48 * at 'data'. 'length' bits of the bitstring are valid. If 'lsb0'
50 * bitstring. Otherwise bit 0 is the most significant bit.
53 REQUIRE(bitstring != NULL);
57 bitstring->magic = BITSTRING_MAGIC;
58 bitstring->data = data;
59 bitstring->length = length;
60 bitstring->size = size;
61 bitstring->lsb0 = lsb0;
65 isc_bitstring_invalidate(isc_bitstring_t *bitstring) {
68 * Invalidate 'bitstring'.
71 REQUIRE(VALID_BITSTRING(bitstring));
73 bitstring->magic = 0;
74 bitstring->data = NULL;
75 bitstring->length = 0;
76 bitstring->size = 0;
77 bitstring->lsb0 = ISC_FALSE;