mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
Add a lib/raclz4 package
This commit is contained in:
1 parent
01ebdae372
commit
00b6d22333
3 files changed
+267
No files matched your search
@@ -193,6 +193,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/google/wuffs/lib/rac"
|
||||
"github.com/google/wuffs/lib/raclz4"
|
||||
"github.com/google/wuffs/lib/raczlib"
|
||||
"github.com/google/wuffs/lib/raczstd"
|
||||
)
|
||||
@@ -377,6 +378,7 @@ func decode(inFile *os.File) error {
|
||||
ReadSeeker: rs,
|
||||
CompressedSize: compressedSize,
|
||||
CodecReaders: []rac.CodecReader{
|
||||
&raclz4.CodecReader{},
|
||||
&raczlib.CodecReader{},
|
||||
&raczstd.CodecReader{},
|
||||
},
|
||||
@@ -446,6 +448,8 @@ func encode(r io.Reader) error {
|
||||
DChunkSize: uint64(dchunksize),
|
||||
}
|
||||
switch *codecFlag {
|
||||
case "lz4":
|
||||
w.CodecWriter = &raclz4.CodecWriter{}
|
||||
case "zlib":
|
||||
w.CodecWriter = &raczlib.CodecWriter{}
|
||||
case "zstd":
|
||||
|
||||
Reference in new issue
Block a user