-
Notifications
You must be signed in to change notification settings - Fork 0
/
compression.go
56 lines (43 loc) · 1.28 KB
/
compression.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package compression
import (
"github.com/wabzsy/compression/aplib"
"github.com/wabzsy/compression/lznt1"
"github.com/wabzsy/compression/rtl"
"github.com/wabzsy/compression/xpress"
)
func APLibCompress(source []byte) ([]byte, error) {
return aplib.Compress(source, false)
}
func APLibSafeCompress(source []byte) ([]byte, error) {
return aplib.Compress(source, true)
}
func APLibDecompress(source []byte) ([]byte, error) {
return aplib.Decompress(source, false)
}
func APLibStrictDecompress(source []byte) ([]byte, error) {
return aplib.Decompress(source, true)
}
func LZNT1Compress(source []byte) ([]byte, error) {
return lznt1.Compress(source)
}
func LZNT1Decompress(source []byte) ([]byte, error) {
return lznt1.Decompress(source)
}
func XPressCompress(source []byte) ([]byte, error) {
return xpress.Compress(source)
}
func XPressDecompress(source []byte) ([]byte, error) {
return xpress.Decompress(source)
}
func RtlLZNT1Compress(source []byte) ([]byte, error) {
return rtl.LZNT1Compress(source)
}
func RtlLZNT1Decompress(source []byte) ([]byte, error) {
return rtl.LZNT1Decompress(source)
}
func RtlXPressCompress(source []byte) ([]byte, error) {
return rtl.XPressCompress(source)
}
func RtlXPressDecompress(source []byte) ([]byte, error) {
return rtl.XPressDecompress(source)
}