Consolidate lib/rac's error messages

This commit is contained in:
Nigel Tao committed 2019-08-08 16:05:58 +10:00
1 parent 46a14c25f5
commit 685cf410bd
5 files changed
+59 -50

No files matched your search

-10
View File
@@ -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