mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Re-order rac.ChunkWriter.AddChunk args
This commit is contained in:
1 parent
706e7a2474
commit
a61d735d54
4 files changed
+13
-13
No files matched your search
@@ -72,7 +72,7 @@ func Example_indexLocationAtEnd() {
|
||||
w := &rac.ChunkWriter{
|
||||
Writer: buf,
|
||||
}
|
||||
if err := w.AddChunk(uint64(len(src)), enc, 0, 0, rac.CodecZlib); err != nil {
|
||||
if err := w.AddChunk(uint64(len(src)), rac.CodecZlib, enc, 0, 0); err != nil {
|
||||
log.Fatalf("AddChunk: %v", err)
|
||||
}
|
||||
if err := w.Close(); err != nil {
|
||||
@@ -141,7 +141,7 @@ func Example_indexLocationAtStart() {
|
||||
}
|
||||
encodedChunk := b.Bytes()
|
||||
|
||||
if err := w.AddChunk(uint64(len(chunk)), encodedChunk, dictResource, 0, rac.CodecZlib); err != nil {
|
||||
if err := w.AddChunk(uint64(len(chunk)), rac.CodecZlib, encodedChunk, dictResource, 0); err != nil {
|
||||
log.Fatalf("AddChunk: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user