Bitdefender Hypervisor Memory Introspection
|
#include "introtypes.h"
Go to the source code of this file.
Data Structures | |
struct | _BITMASK |
Represents a bit mask. More... | |
Typedefs | |
typedef struct _BITMASK | BITMASK |
Represents a bit mask. More... | |
Functions | |
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... | |
Represents a bit mask.
Note that this structure has a variable size.
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().
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. |