-
Notifications
You must be signed in to change notification settings - Fork 28
/
Buffer.h
80 lines (71 loc) · 1.04 KB
/
Buffer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*!
*
* MINBEACON
*
* GuidePoint Security LLC
*
* Threat and Attack Simulation Team
*
!*/
#pragma once
typedef struct
{
LPVOID Buffer;
UINT32 Length;
} BUFFER, *PBUFFER ;
/*!
*
* Purpose:
*
* Create a buffer object.
*
!*/
D_SEC( B ) PBUFFER BufferCreate( VOID );
/*!
*
* Purpose:
*
* Frees a buffer object.
*
!*/
D_SEC( B ) VOID BufferRemove( _In_ PBUFFER Buffer );
/*!
*
* Purpose:
*
* Extend the size of the buffer.
*
!*/
D_SEC( B ) BOOL BufferExtend( _In_ PBUFFER Buffer, _In_ UINT32 Length );
/*!
*
* Purpose:
*
* Appends a buffer of specified length.
*
!*/
D_SEC( B ) BOOL BufferAddRaw( _In_ PBUFFER BufObj, _In_ PVOID Buffer, _In_ UINT32 Length );
/*!
*
* Purpose:
*
* Append a UINT32 value.
*
!*/
D_SEC( B ) BOOL BufferAddI32( _In_ PBUFFER BufObj, _In_ UINT32 Value );
/*!
*
* Purpose:
*
* Append a UINT16 value.
*
!*/
D_SEC( B ) BOOL BufferAddI16( _In_ PBUFFER BufObj, _In_ UINT16 Value );
/*
*
* Purpose:
*
* Append a UINT8 value.
*
!*/
D_SEC( B ) BOOL BufferAddI8( _In_ PBUFFER BufObj, _In_ UINT8 Value );