struct_binary_array_t Struct Reference

Defines an array of bits. More...

#include <lib/utils/include/array.h>


Data Fields

uint32_t alloced
uint32_t length
TIFA_BITSTRING_T * data


Detailed Description

Defines an array of bits.

This structure defines an array of bits which knows its current length and its allocated memory space.

Note:
Internally, bits are packed in a TIFA_BITSTRING_T array.

Definition at line 1127 of file array.h.


Field Documentation

Memory space allocated for this array's data field, given as a multiple of sizeof(TIFA_BITSTRING_T). This is the maximum number of TIFA_BITSTRING_T that the array can accommodate. The number of bits that the array can hold is hence CHAR_BIT * sizeof(TIFA_BITSTRING_T) times this value (CHAR_BIT being the number of bits used to represent a char, usually 8 on most current architectures).

Definition at line 1137 of file array.h.

Current number of bits hold in the array pointed by the structure's data field.

Definition at line 1142 of file array.h.

TIFA_BITSTRING_T* struct_binary_array_t::data

Array of TIFA_BITSTRING_T whose size is given by the alloced field.

Definition at line 1147 of file array.h.

Referenced by flip_array_bit(), get_array_bit(), set_array_bit_to_one(), and set_array_bit_to_zero().


The documentation for this struct was generated from the following file:

Generated on Fri Jun 17 11:10:12 2011 for TIFA by Doxygen 1.5.5