22 FlatBuffer->Buffer =
Buffer;
24 FlatBuffer->BufferEnd = (
PVOID)(FlatBuffer->BufferPos +
Size);
27 FlatBuffer->BufferSize = FlatBuffer->BufferFreeSize =
Size;
38 SIZE_T NewFreeSize = *FreeSize;
44 NewPosition = OldPosition +
Size;
47 NewFreeSize += (OldPosition - NewPosition);
51 *FreeSize = NewFreeSize;
54 if (NewFreeSize > 0)
return (
PVOID)OldPosition;
ACPI_SIZE strlen(const char *String)
PVOID WINAPI FlatBuf_Arg_Reserve(IN OUT PULONG_PTR Position, IN OUT PSIZE_T FreeSize, IN SIZE_T Size, IN ULONG Align)
PVOID WINAPI FlatBuf_Arg_CopyMemory(IN OUT PULONG_PTR Position, IN OUT PSIZE_T FreeSize, IN PVOID Buffer, IN SIZE_T Size, IN ULONG Align)
VOID WINAPI FlatBuf_Init(IN PFLATBUFF FlatBuffer, IN PVOID Buffer, IN SIZE_T Size)
PVOID WINAPI FlatBuf_Arg_WriteString(IN OUT PULONG_PTR Position, IN OUT PSIZE_T FreeSize, IN PVOID String, IN BOOLEAN IsUnicode)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
#define RtlCopyMemory(Destination, Source, Length)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String