MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / strguid

Function strguid

rEFIt_UEFI/Platform/Posix/stdio.cpp:61–72  ·  view source on GitHub ↗

this function print guid in LittleEndian format while we need BigEndian as Apple do

Source from the content-addressed store, hash-verified

59
60//this function print guid in LittleEndian format while we need BigEndian as Apple do
61const char* strguid(EFI_GUID* guid)
62{
63 size_t size = stdio_static_buf.allocatedSize();
64 UINTN n = 0;
65 n = AsciiSPrint(stdio_static_buf.dataSized(size), size, "%g", guid);
66 while ( n > size - 2 )
67 {
68 size += 10;
69 n = AsciiSPrint(stdio_static_buf.dataSized(size), size, "%g", guid);
70 }
71 return stdio_static_buf.s();
72}
73

Callers 8

SetStartupDiskVolumeFunction · 0.85
IsOsxHibernatedFunction · 0.85
AddDefaultMenuMethod · 0.85
LinuxScanFunction · 0.85
AddCustomEntryFunction · 0.85
SetSignedVariableFunction · 0.85

Calls 4

sMethod · 0.80
AsciiSPrintFunction · 0.50
allocatedSizeMethod · 0.45
dataSizedMethod · 0.45

Tested by

no test coverage detected