mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Consolidate lib/rac's error messages
This commit is contained in:
1 parent
46a14c25f5
commit
685cf410bd
5 files changed
+59
-50
No files matched your search
@@ -17,7 +17,6 @@ package rac
|
||||
// TODO: API for shared dictionaries.
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
)
|
||||
|
||||
@@ -28,15 +27,6 @@ const (
|
||||
maxTargetDChunkSize = 1 << 31 // 2 GiB.
|
||||
)
|
||||
|
||||
var (
|
||||
errCChunkSizeIsTooSmall = errors.New("rac: CChunkSize is too small")
|
||||
errInvalidCodecWriter = errors.New("rac: invalid CodecWriter")
|
||||
errInvalidWriter = errors.New("rac: invalid Writer")
|
||||
errWriterIsClosed = errors.New("rac: Writer is closed")
|
||||
|
||||
errInternalShortCSize = errors.New("rac: internal error: short CSize")
|
||||
)
|
||||
|
||||
func startingTargetDChunkSize(cChunkSize uint64) uint64 { return 2 * cChunkSize }
|
||||
|
||||
// stripTrailingZeroes returns b shorn of any trailing '\x00' bytes. The RAC
|
||||
|
||||
Reference in new issue
Block a user