Main Page | Modules | Data Structures | File List | Globals | Related Pages

bitfield.h File Reference


Detailed Description

Compactly represent a bit field.

Go to the source code of this file.

Data Structures

struct  _BITFIELD_
 ADT for compactly representing a bit field. More...


Typedefs

typedef _BITFIELD_ BitFieldStruct
 ADT for compactly representing a bit field.

typedef _BITFIELD_BitFieldPtr
 ADT for compactly representing a bit field.


Functions

BitField BitFieldNew (int byteSize)
 Create a new BitField with the specified number of bits.

void BitFieldFree (BitField b)
 Frees the memory associated with the BitField.

int BitFieldGetNumBytes (BitField b)
 Returns the number of bytes being used to represent the BitField.

int BitFieldGetBit (BitField b, long offset)
 Returns the value of the specifed bit.

void BitFieldSetBit (BitField b, long offset, int val)
 Sets the value of the specified bit.


Typedef Documentation

typedef struct _BITFIELD_ * BitFieldPtr
 

ADT for compactly representing a bit field.

See bitfield.h for more detail.

typedef struct _BITFIELD_ BitFieldStruct
 

ADT for compactly representing a bit field.

See bitfield.h for more detail.


Function Documentation

void BitFieldFree BitField  b  ) 
 

Frees the memory associated with the BitField.

int BitFieldGetBit BitField  b,
long  offset
 

Returns the value of the specifed bit.

int BitFieldGetNumBytes BitField  b  ) 
 

Returns the number of bytes being used to represent the BitField.

BitField BitFieldNew int  byteSize  ) 
 

Create a new BitField with the specified number of bits.

void BitFieldSetBit BitField  b,
long  offset,
int  val
 

Sets the value of the specified bit.


Generated for VFML by doxygen hosted by SourceForge.net Logo