bitmap

Name

bitmap -- "C" implementation of Bitmap class

Synopsis



typedef     TocBitmapElem;
#define     BITS_PER_ELEM
TOCBITMAP*  TocBitmapCreate                 (int nbits);
void        TocBitmapDestroy                (TOCBITMAP *bm);
void        TocBitmapReset                  (TOCBITMAP *bm);
int         TocBitmapAlloc                  (TOCBITMAP *bm);
void        TocBitmapSet                    (TOCBITMAP *bm,
                                             int n);
void        TocBitmapClear                  (TOCBITMAP *bm,
                                             int n);
int         TocBitmapIsSet                  (TOCBITMAP *bm,
                                             int n);

Description

This module implements operations on an array of bits and is used to represent free space on the PJB.

Details

TocBitmapElem

typedef unsigned long TocBitmapElem;


BITS_PER_ELEM

#define BITS_PER_ELEM   (8 * sizeof(TocBitmapElem))


TocBitmapCreate ()

TOCBITMAP*  TocBitmapCreate                 (int nbits);

???

nbits : Number of blocks
Returns : ???


TocBitmapDestroy ()

void        TocBitmapDestroy                (TOCBITMAP *bm);

???

bm : ??


TocBitmapReset ()

void        TocBitmapReset                  (TOCBITMAP *bm);

???

bm : ??


TocBitmapAlloc ()

int         TocBitmapAlloc                  (TOCBITMAP *bm);

???

bm : ???
Returns : ???


TocBitmapSet ()

void        TocBitmapSet                    (TOCBITMAP *bm,
                                             int n);

???

bm : ??
n : ??


TocBitmapClear ()

void        TocBitmapClear                  (TOCBITMAP *bm,
                                             int n);

???

bm : ??
n : ??


TocBitmapIsSet ()

int         TocBitmapIsSet                  (TOCBITMAP *bm,
                                             int n);

???

bm : ???
n : ???
Returns : ???