TianoCore EDK2 master
Loading...
Searching...
No Matches
SortLib.h
Go to the documentation of this file.
1
9#ifndef __SORT_LIB_H__
10#define __SORT_LIB_H__
11
22typedef
24(EFIAPI *SORT_COMPARE)(
25 IN CONST VOID *Buffer1,
26 IN CONST VOID *Buffer2
27 );
28
47VOID
48EFIAPI
50 IN OUT VOID *BufferToSort,
51 IN CONST UINTN Count,
52 IN CONST UINTN ElementSize,
53 IN SORT_COMPARE CompareFunction
54 );
55
66INTN
67EFIAPI
69 IN CONST VOID *Buffer1,
70 IN CONST VOID *Buffer2
71 );
72
83INTN
84EFIAPI
86 IN CONST VOID *Buffer1,
87 IN CONST VOID *Buffer2
88 );
89
100INTN
101EFIAPI
103 IN CONST VOID *Buffer1,
104 IN CONST VOID *Buffer2
105 );
106
107#endif //__SORT_LIB_H__
UINT64 UINTN
INT64 INTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
VOID EFIAPI PerformQuickSort(IN OUT VOID *BufferToSort, IN CONST UINTN Count, IN CONST UINTN ElementSize, IN SORT_COMPARE CompareFunction)
Definition: BaseSortLib.c:36
INTN(EFIAPI * SORT_COMPARE)(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
Definition: SortLib.h:24
INTN EFIAPI StringNoCaseCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
Definition: BaseSortLib.c:92
INTN EFIAPI DevicePathCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
Definition: BaseSortLib.c:73
INTN EFIAPI StringCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
Definition: BaseSortLib.c:111