OpenCore
1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
lzss.h
Go to the documentation of this file.
1
15
#ifndef LZSS_H
16
#define LZSS_H
17
18
#include <Library/BaseMemoryLib.h>
19
#include <Library/MemoryAllocationLib.h>
20
#include <
Library/OcCompressionLib.h
>
21
22
#define compress_lzss CompressLZSS
23
#define decompress_lzss DecompressLZSS
24
25
#ifdef EFIUSER
26
#include <stdint.h>
27
#include <stddef.h>
28
#include <string.h>
29
#include <stdlib.h>
30
#else
31
32
typedef
INT8
int8_t
;
33
typedef
INT16
int16_t
;
34
typedef
INT32
int32_t
;
35
36
#ifdef memset
37
#undef memset
38
#endif
39
40
#ifdef malloc
41
#undef malloc
42
#endif
43
44
#ifdef free
45
#undef free
46
#endif
47
48
#define memset(Dst, Val, Size) SetMem ((Dst), (Size), (Val))
49
#define malloc(Size) AllocatePool (Size)
50
#define free(Ptr) FreePool (Ptr)
51
#endif
52
53
typedef
UINT8
u_int8_t
;
54
typedef
UINT16
u_int16_t
;
55
typedef
UINT32
u_int32_t
;
56
57
#ifdef bzero
58
#undef bzero
59
#endif
60
#define bzero(Dst, Size) ZeroMem ((Dst), (Size))
61
62
#endif
// LZSS_H
OcCompressionLib.h
u_int16_t
UINT16 u_int16_t
Definition
lzss.h:54
u_int32_t
UINT32 u_int32_t
Definition
lzss.h:55
int8_t
INT8 int8_t
Definition
lzss.h:32
u_int8_t
UINT8 u_int8_t
Definition
lzss.h:53
int32_t
INT32 int32_t
Definition
lzss.h:34
int16_t
INT16 int16_t
Definition
lzss.h:33
Library
OcCompressionLib
lzss
lzss.h
Generated by
1.12.0