#include "acpi.h"
#include "accommon.h"
#include "acinterp.h"
Go to the source code of this file.
◆ _COMPONENT
◆ AcpiExStoreBufferToBuffer()
Definition at line 67 of file exstorob.c.
70{
73
74
76
77
78
79
80 if (SourceDesc == TargetDesc)
81 {
83 }
84
85
86
89
90
91
92
93
94 if ((TargetDesc->
Buffer.Length == 0) ||
96 {
98 if (!TargetDesc->
Buffer.Pointer)
99 {
101 }
102
104 }
105
106
107
108 if (Length <= TargetDesc->
Buffer.Length)
109 {
110
111
114
115#ifdef ACPI_OBSOLETE_BEHAVIOR
116
117
118
119
120
121
122
123
124
125
126
127
128
129
131 {
132
133
135 }
136#endif
137 }
138 else
139 {
140
141
143 TargetDesc->
Buffer.Length);
144
146 "Truncating source buffer from %X to %X\n",
148 }
149
150
151
153 TargetDesc->
Common.Flags &= ~AOPOBJ_STATIC_POINTER;
155}
#define AOPOBJ_STATIC_POINTER
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define return_ACPI_STATUS(s)
#define ACPI_CAST_PTR(t, p)
#define memcpy(s1, s2, n)
_In_ ULONG _In_ ULONG _In_ ULONG Length
ACPI_OBJECT_COMMON Common
ACPI_OBJECT_BUFFER Buffer
Referenced by AcpiExStoreObjectToObject().
◆ AcpiExStoreStringToString()
Definition at line 172 of file exstorob.c.
175{
178
179
181
182
183
184
185 if (SourceDesc == TargetDesc)
186 {
188 }
189
190
191
194
195
196
197
198
199 if ((Length < TargetDesc->
String.Length) &&
201 {
202
203
204
205
207 (ACPI_SIZE) TargetDesc->
String.Length + 1);
209 }
210 else
211 {
212
213
214
215
216 if (TargetDesc->
String.Pointer &&
218 {
219
220
222 }
223
224 TargetDesc->
String.Pointer =
226
227 if (!TargetDesc->
String.Pointer)
228 {
230 }
231
232 TargetDesc->
Common.Flags &= ~AOPOBJ_STATIC_POINTER;
234 }
235
236
237
240}
#define ACPI_ALLOCATE_ZEROED(a)
ACPI_OBJECT_STRING String
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Referenced by AcpiExStoreObjectToObject().