49#define _COMPONENT ACPI_EXECUTER
80 if (SourceDesc == TargetDesc)
88 Length = SourceDesc->Buffer.Length;
94 if ((TargetDesc->Buffer.Length == 0) ||
98 if (!TargetDesc->Buffer.Pointer)
103 TargetDesc->Buffer.Length =
Length;
108 if (Length <= TargetDesc->
Buffer.Length)
112 memset (TargetDesc->Buffer.Pointer, 0, TargetDesc->Buffer.Length);
115#ifdef ACPI_OBSOLETE_BEHAVIOR
134 TargetDesc->Buffer.Length =
Length;
143 TargetDesc->Buffer.Length);
146 "Truncating source buffer from %X to %X\n",
147 Length, TargetDesc->Buffer.Length));
152 TargetDesc->Buffer.Flags = SourceDesc->Buffer.Flags;
153 TargetDesc->Common.Flags &= ~AOPOBJ_STATIC_POINTER;
185 if (SourceDesc == TargetDesc)
199 if ((Length < TargetDesc->
String.Length) &&
207 (ACPI_SIZE) TargetDesc->
String.Length + 1);
216 if (TargetDesc->
String.Pointer &&
224 TargetDesc->
String.Pointer =
227 if (!TargetDesc->
String.Pointer)
232 TargetDesc->
Common.Flags &= ~AOPOBJ_STATIC_POINTER;
#define AOPOBJ_STATIC_POINTER
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_MODULE_NAME(Name)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define return_ACPI_STATUS(s)
#define ACPI_CAST_PTR(t, p)
#define ACPI_ALLOCATE_ZEROED(a)
ACPI_STATUS AcpiExStoreBufferToBuffer(ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc)
ACPI_STATUS AcpiExStoreStringToString(ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc)
#define memcpy(s1, s2, n)
_In_ ULONG _In_ ULONG _In_ ULONG Length
ACPI_OBJECT_COMMON Common
ACPI_OBJECT_STRING String
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String