DayZ 1.24
|
Static Private Member Functions | |
static int | IDToIndex (int id) |
static int | IDToMask (int id) |
static array< int > | CreateMaskArray (int size) |
Creates an array which will be able to accomodate 'size' number of unique IDs. | |
static int | GetBitCount (array< int > bit_array) |
Returns number of bits this array can hold. | |
static int | IDToNumOfItems (int id) |
Returns number of INTs required to hold this ID minus 1(ie for 32, the result is 0, for 33, the result is 1) | |
static array< int > | CreateArrayWithID (int id) |
static bool | IsMaskContainID (array< int > bit_array, int id) |
static bool | AddIDToMask (array< int > bit_array, int id) |
Definition at line 5 of file BitArray.c.
Definition at line 75 of file BitArray.c.
References IDToMask(), and IDToNumOfItems().
Definition at line 45 of file BitArray.c.
References IDToMask(), and IDToNumOfItems().
Creates an array which will be able to accomodate 'size' number of unique IDs.
Definition at line 21 of file BitArray.c.
References IDToNumOfItems().
Returns number of bits this array can hold.
Definition at line 32 of file BitArray.c.
References BIT_INT_SIZE.
Definition at line 7 of file BitArray.c.
References BIT_INT_SIZE, and IDToNumOfItems().
Referenced by IDToMask().
Definition at line 14 of file BitArray.c.
References IDToIndex().
Referenced by AddIDToMask(), CreateArrayWithID(), and IsMaskContainID().
Returns number of INTs required to hold this ID minus 1(ie for 32, the result is 0, for 33, the result is 1)
Definition at line 38 of file BitArray.c.
References BIT_INT_SIZE.
Referenced by AddIDToMask(), CreateArrayWithID(), CreateMaskArray(), IDToIndex(), and IsMaskContainID().
Definition at line 58 of file BitArray.c.
References IDToMask(), and IDToNumOfItems().