13#define ONIGMEM_HEAD_SIGNATURE SIGNATURE_32('o','m','h','d')
20#define ONIGMEM_OVERHEAD sizeof(ONIGMEM_HEAD)
34 NumberOfPrinted = (int)
AsciiVSPrint (str, sizeOfBuffer, fmt, Marker);
37 return NumberOfPrinted;
54 return strlen_s (str, MAX_STRING_SIZE);
66 NewSize = (
UINTN)(size) + ONIGMEM_OVERHEAD;
71 PoolHdr->Signature = ONIGMEM_HEAD_SIGNATURE;
74 return (VOID *)(PoolHdr + 1);
92 NewSize = (
UINTN)size + ONIGMEM_OVERHEAD;
96 NewPoolHdr->Signature = ONIGMEM_HEAD_SIGNATURE;
97 NewPoolHdr->Size = size;
100 ASSERT (OldPoolHdr->Signature == ONIGMEM_HEAD_SIGNATURE);
101 OldSize = OldPoolHdr->Size;
103 CopyMem ((VOID *)(NewPoolHdr + 1), ptr,
MIN (OldSize, size));
107 return (VOID *)(NewPoolHdr + 1);
113#if !defined (MDE_CPU_ARM)
145 if (EvalOnce ==
NULL) {
150 if (PoolHdr->Signature == ONIGMEM_HEAD_SIGNATURE) {
INTN EFIAPI AsciiStrCmp(IN CONST CHAR8 *FirstString, IN CONST CHAR8 *SecondString)
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
VOID *EFIAPI SetMem(OUT VOID *Buffer, IN UINTN Length, IN UINT8 Value)
VOID EFIAPI FreePool(IN VOID *Buffer)
UINTN EFIAPI AsciiVSPrint(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString, IN VA_LIST Marker)
#define VA_START(Marker, Parameter)
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)