My Project
Loading...
Searching...
No Matches
rtl.h
Go to the documentation of this file.
1#ifndef X86_MATANEL_RUNTIME_LIBRARIES_H
2#define X86_MATANEL_RUNTIME_LIBRARIES_H
3
4/*++
5
6Module Name:
7
8 rtl.h
9
10Purpose:
11
12 This module contains declarations for the runtime library (RTL), which provide core support routines used by other kernel components.
13
14Author:
15
16 slep (Matanel) 2025.
17
18Revision History:
19
20--*/
21
22#include <stdint.h>
23#include <stddef.h>
24#include <stdbool.h>
25#include "macros.h"
26#include "annotations.h"
27#include "../mtstatus.h"
28
30void
32 IN void* Destination,
33 IN size_t Length
34)
35/*++
36
37Routine Description:
38
39 Fills a block of memory with zeros.
40
41Arguments:
42
43 Destination - Pointer to the memory block to zero.
44 Length - Number of bytes to zero.
45
46Return Value:
47
48 None.
49
50--*/
51{
52 unsigned char* ptr = (unsigned char*)Destination;
53 while (Length--)
54 *ptr++ = 0;
55}
56
57#endif
#define FORCEINLINE
Definition annotations.h:22
#define IN
Definition annotations.h:7
uint32_t Length
Definition mh.h:6
FORCEINLINE void RtlZeroMemory(IN void *Destination, IN size_t Length)
Definition rtl.h:31