|
Bitdefender Hypervisor Memory Introspection
|
#include "structs.h"Go to the source code of this file.
Functions | |
| INTSTATUS | IntStructFill (const void *Buffer, size_t Size, INT_STRUCT_INVARIANT *Invariants, size_t Count, BOOLEAN LogErrors, void *Context) |
| Fill an internal structure with information gathered from the guest by applying a list of invariants on buffer. More... | |
| INTSTATUS IntStructFill | ( | const void * | Buffer, |
| size_t | Size, | ||
| INT_STRUCT_INVARIANT * | Invariants, | ||
| size_t | Count, | ||
| BOOLEAN | LogErrors, | ||
| void * | Context | ||
| ) |
Fill an internal structure with information gathered from the guest by applying a list of invariants on buffer.
Will simply iterate through the buffer, letting the invariants increment the offsets where they are applied and set each invariants' known offset to the one where it was successful, then go to the next one.
| [in] | Buffer | The buffer in which to perform the search. |
| [in] | Size | The size of the buffer. |
| [in,out] | Invariants | List of invariants that are to be applied on the buffer. |
| [in] | Count | The number of invariants to be applied. |
| [in] | LogErrors | Set to TRUE if this function should log any errors on failure. |
| [in,out] | Context | Context to be given to each invariant callback, can be anything. |
Definition at line 8 of file structs.c.
Referenced by IntWinNetFillTcpStruct().