Documentation
¶
Index ¶
- Variables
- func AppendArrayLen(dst []byte, l int) ([]byte, error)
- func AppendMapLen(dst []byte, l int) ([]byte, error)
- func DecodeArrayLen(data []byte, opt DecodeOptions) (elements, consume, end int, stepIn []byte, _ error)
- func DecodeBool(data []byte, opt DecodeOptions) (bool, int, error)
- func DecodeBytesToUint(data []byte) (uint, bool)
- func DecodeExtensionHeader(data []byte) (int8, []byte, error)
- func DecodeFlavorPick(data []byte, opt DecodeOptions) (int, error)
- func DecodeFloat32(data []byte, opt DecodeOptions) (float32, int, error)
- func DecodeFloat64(data []byte, opt DecodeOptions) (float64, int, error)
- func DecodeInjectionExtension(data []byte, opt DecodeOptions) ([]byte, error)
- func DecodeInt(data []byte, opt DecodeOptions) (int, int, error)
- func DecodeLengthPrefixExtension(data []byte) int
- func DecodeMapLen(data []byte, opt DecodeOptions) (elements, consume, end int, stepIn []byte, _ error)
- func DecodeString(data []byte, opt DecodeOptions) (string, int, error)
- func DecodeTime(data []byte, opt DecodeOptions) (time.Time, int, error)
- func DecodeTimestamp(data []byte) (time.Time, error)
- func DecodeUnwrappedArrayLen(data []byte) (int, int, bool)
- func DecodeUnwrappedMapLen(data []byte) (int, int, bool)
- func DescribeValue(data []byte) string
- func SkipMultiple(data []byte, offset, num int) (int, error)
- func UnsafeStringCast(data []byte) string
- func ValueLength(data []byte) (int, error)
- type DecodeOptions
- type Dict
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVoid = errors.New("tried to decode a void value") ErrShortInput = errors.New("msgpack data ends unexpectedly") ErrShortInputForTime = errors.New("msgpack data is too short to hold a time") )
View Source
var (
ErrCorruptedFlavorData = errors.New("failed to decode flavor selector")
)
View Source
var (
ErrNotExtension = errors.New("data is not an extension")
)
Functions ¶
func DecodeArrayLen ¶ added in v0.3.0
func DecodeArrayLen(data []byte, opt DecodeOptions) (elements, consume, end int, stepIn []byte, _ error)
func DecodeBool ¶ added in v0.3.0
func DecodeBool(data []byte, opt DecodeOptions) (bool, int, error)
func DecodeBytesToUint ¶
func DecodeExtensionHeader ¶ added in v0.6.0
func DecodeFlavorPick ¶ added in v0.3.0
func DecodeFlavorPick(data []byte, opt DecodeOptions) (int, error)
func DecodeFloat32 ¶ added in v0.3.0
func DecodeFloat32(data []byte, opt DecodeOptions) (float32, int, error)
func DecodeFloat64 ¶ added in v0.3.0
func DecodeFloat64(data []byte, opt DecodeOptions) (float64, int, error)
func DecodeInjectionExtension ¶ added in v0.4.0
func DecodeInjectionExtension(data []byte, opt DecodeOptions) ([]byte, error)
func DecodeLengthPrefixExtension ¶ added in v0.3.0
DecodeLengthPrefixExtension returns the number of bytes to be skipped past to get to the real entry.
func DecodeMapLen ¶ added in v0.3.0
func DecodeMapLen(data []byte, opt DecodeOptions) (elements, consume, end int, stepIn []byte, _ error)
func DecodeString ¶ added in v0.3.0
func DecodeString(data []byte, opt DecodeOptions) (string, int, error)
func DecodeTime ¶ added in v0.3.0
func DecodeUnwrappedArrayLen ¶ added in v0.3.0
func DecodeUnwrappedMapLen ¶ added in v0.3.0
func DescribeValue ¶ added in v0.3.0
func UnsafeStringCast ¶ added in v0.3.0
func ValueLength ¶ added in v0.3.0
Types ¶
type DecodeOptions ¶ added in v0.3.0
func (DecodeOptions) Clone ¶ added in v0.6.0
func (d DecodeOptions) Clone() DecodeOptions
Click to show internal directories.
Click to hide internal directories.