|
Bitdefender Hypervisor Memory Introspection
|
Go to the source code of this file.
Functions | |
| static UINT64 * | BitMaskGetBaseAndBit (BITMASK *BitMask, DWORD *BitPos) |
| Return the base and the position of a bit relative to that base. More... | |
| static UINT64 * | BitMaskGetBase (BITMASK *BitMask, DWORD BitPos) |
| Returns the bit base for a given bit position. More... | |
| BITMASK * | BitMaskAlloc (size_t Size) |
| Creates a new BITMASK. More... | |
| void | BitMaskFree (BITMASK **BitMask) |
| Frees a BITMASK allocated by BitMaskAlloc. More... | |
| void | BitMaskSet (BITMASK *BitMask, DWORD BitPos) |
| Sets a bit in a BITMASK. More... | |
| void | BitMaskClear (BITMASK *BitMask, DWORD BitPos) |
| Clears a bit in a BITMASK. More... | |
| BYTE | BitMaskTest (BITMASK *BitMask, DWORD BitPos) |
| Tests a bit in a BITMASK. More... | |
| BYTE | BitMaskTestAndSet (BITMASK *BitMask, DWORD BitPos) |
| Tests and sets a bit in a BITMASK. More... | |
| BYTE | BitMaskTestAndReset (BITMASK *BitMask, DWORD BitPos) |
| Tests and clears a bit in a BITMASK. More... | |
| DWORD | BitMaskScanForward (BITMASK *BitMask) |
| Search for a set bit starting from the least significant bit. More... | |
| BITMASK* BitMaskAlloc | ( | size_t | Size | ) |
Creates a new BITMASK.
The actual size of the BITMASK.Bits array will be (Size / 8) is Size is divisible by 8, otherwise (Size / 8) + 1.
| [in] | Size | The number of bits in the bit mask. |
Definition at line 56 of file bitmask.c.
Referenced by IntWinNetParseTcpBitmap().
| void BitMaskFree | ( | BITMASK ** | BitMask | ) |
Frees a BITMASK allocated by BitMaskAlloc.
| [in,out] | BitMask | Pointer to the BITMASK pointer to be freed. Upon return will point to NULL. |
Definition at line 83 of file bitmask.c.
Referenced by IntWinNetParseTcpBitmap().
Returns the bit base for a given bit position.
| [in] | BitMask | The bit mask. |
| [in] | BitPos | As input, the position of the bit in the bitmask. |
Definition at line 37 of file bitmask.c.
Referenced by BitMaskScanForward().
Return the base and the position of a bit relative to that base.
| [in] | BitMask | The bit mask. |
| [in,out] | BitPos | As input, the position of the bit in the bitmask. After this function returns, it will contain the bit position relative to the bit base. |
Definition at line 12 of file bitmask.c.
Referenced by BitMaskClear(), BitMaskSet(), BitMaskTest(), BitMaskTestAndReset(), and BitMaskTestAndSet().
Tests a bit in a BITMASK.
If the given bit is not a member of the BITMASK this function does nothing.
| [in,out] | BitMask | The bit mask in which to test the bit. |
| [in] | BitPos | The position of the bit. |
Definition at line 151 of file bitmask.c.
Referenced by IntWinNetParseTcpBitmap().
Tests and clears a bit in a BITMASK.
If the given bit is not a member of the BITMASK this function does nothing.
| [in,out] | BitMask | The bit mask in which to test and clear the bit. After this function returns, the bit at BitPos will be cleared. |
| [in] | BitPos | The position of the bit. |
Tests and sets a bit in a BITMASK.
If the given bit is not a member of the BITMASK this function does nothing.
| [in,out] | BitMask | The bit mask in which to test and set the bit. After this function returns, the bit at BitPos will be set. |
| [in] | BitPos | The position of the bit. |