25 lines
727 B
Go
25 lines
727 B
Go
|
|
package cid
|
||
|
|
|
||
|
|
import (
|
||
|
|
"errors"
|
||
|
|
)
|
||
|
|
|
||
|
|
var (
|
||
|
|
// ErrVarintBuffSmall means that a buffer passed to the cid parser was not
|
||
|
|
// long enough, or did not contain an invalid cid
|
||
|
|
ErrVarintBuffSmall = errors.New("reading varint: buffer too small")
|
||
|
|
|
||
|
|
// ErrVarintTooBig means that the varint in the given cid was above the
|
||
|
|
// limit of 2^64
|
||
|
|
ErrVarintTooBig = errors.New("reading varint: varint bigger than 64bits" +
|
||
|
|
" and not supported")
|
||
|
|
|
||
|
|
// ErrCidTooShort means that the cid passed to decode was not long
|
||
|
|
// enough to be a valid Cid
|
||
|
|
ErrCidTooShort = errors.New("cid too short")
|
||
|
|
|
||
|
|
// ErrInvalidEncoding means that selected encoding is not supported
|
||
|
|
// by this Cid version
|
||
|
|
ErrInvalidEncoding = errors.New("invalid base encoding")
|
||
|
|
)
|