OpenCore
1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
lzvn.h
Go to the documentation of this file.
1
15
#ifndef LZVN_H
16
#define LZVN_H
17
18
#include <Library/BaseMemoryLib.h>
19
#include <
Library/OcCompressionLib.h
>
20
21
#define lzvn_decode_buffer DecompressLZVN
22
23
#ifdef EFIUSER
24
#include <stdint.h>
25
#include <stddef.h>
26
#include <string.h>
27
28
//
29
// Ugly workaround for size_t incompatibility with UINTN.
30
//
31
#ifdef size_t
32
#undef size_t
33
#endif
34
#define size_t UINTN
35
36
#else
37
typedef
UINT16
uint16_t
;
38
typedef
UINT32
uint32_t
;
39
typedef
UINT64
uint64_t
;
40
41
typedef
INT16
int16_t
;
42
typedef
INT32
int32_t
;
43
typedef
INT64
int64_t
;
44
45
typedef
UINTN
size_t
;
46
typedef
UINTN
uintmax_t
;
47
48
#ifdef memset
49
#undef memset
50
#endif
51
52
#ifdef memcpy
53
#undef memcpy
54
#endif
55
56
#define memset(Dst, Value, Size) SetMem ((Dst), (Size), (UINT8)(Value))
57
#define memcpy(Dst, Src, Size) CopyMem ((Dst), (Src), (Size))
58
59
#endif
60
61
#endif
/* LZVN_H */
OcCompressionLib.h
size_t
#define size_t
Definition
Ubsan.h:87
int32_t
#define int32_t
Definition
Ubsan.h:55
uint16_t
#define uint16_t
Definition
Ubsan.h:58
uint32_t
#define uint32_t
Definition
Ubsan.h:59
int16_t
#define int16_t
Definition
Ubsan.h:54
uint64_t
#define uint64_t
Definition
Ubsan.h:60
uintmax_t
UINTN uintmax_t
Definition
lzvn.h:46
int64_t
INT64 int64_t
Definition
lzvn.h:43
Library
OcCompressionLib
lzvn
lzvn.h
Generated by
1.12.0