# Functions
AppendArrayHeader appends an array header with the given size to the slice.
AppendBool appends a bool to the slice.
AppendByte is analogous to AppendUint8.
AppendBytes appends bytes to the slice as MessagePack 'bin' data.
AppendComplex128 appends a complex128 to the slice as a MessagePack extension.
AppendComplex64 appends a complex64 to the slice as a MessagePack extension.
AppendDuration appends a time.Duration to the slice.
AppendExtension appends a MessagePack extension to the provided slice.
AppendFloat32 appends a float32 to the slice.
AppendFloat64 appends a float64 to the slice.
AppendInt16 appends an int16 to the slice.
AppendInt32 appends an int32 to the slice.
AppendInt64 appends an int64 to the slice.
AppendInt8 appends an int8 to the slice.
AppendMapHeader appends a map header with the given size to the slice.
AppendMapStrStr appends a map[string]string to the slice as a MessagePack map with 'str'-type keys and values.
AppendNil appends a 'nil' byte to the slice.
AppendString appends a string as a MessagePack 'str' to the slice.
AppendStringFromBytes appends a []byte as a MessagePack 'str' to the slice 'b.'.
AppendTime appends a time.Time to the slice as a MessagePack extension.
AppendUint16 appends a uint16 to the slice.
AppendUint32 appends a uint32 to the slice.
AppendUint64 appends a uint64 to the slice.
AppendUint8 appends a uint8 to the slice.
Cause returns the underlying cause of an error that has been wrapped with additional context.
No description provided by the author
IsNil returns true if len(b)>0 and the leading byte is a 'nil' MessagePack byte; false otherwise.
NextType returns the type of the next object in the slice.
ReadArrayHeaderBytes attempts to read the array header size off of 'b' and return the size and remaining bytes.
ReadBoolBytes tries to read a float64 from 'b' and return the value and the remaining bytes.
ReadByteBytes is analogous to ReadUint8Bytes.
ReadBytesBytes reads a 'bin' object from 'b' and returns its value and the remaining bytes in 'b'.
ReadBytesBytesHeader reads the header of a 'bin' object from 'b' and return it's length, in bytes.
ReadBytesZC extracts the messagepack-encoded binary field without copying.
ReadComplex128Bytes reads a complex128 extension object from 'b' and returns the remaining bytes.
ReadComplex64Bytes reads a complex64 extension object from 'b' and returns the remaining bytes.
ReadDurationBytes tries to read a time.Duration from 'b' and return the value and the remaining bytes.
No description provided by the author
ReadExtensionBytes reads an extension from 'b' into 'e' and returns any remaining bytes.
ReadFloat32Bytes tries to read a float64 from 'b' and return the value and the remaining bytes.
ReadFloat64Bytes tries to read a float64 from 'b' and return the value and the remaining bytes.
ReadInt16Bytes tries to read an int16 from 'b' and return the value and the remaining bytes.
ReadInt32Bytes tries to read an int32 from 'b' and return the value and the remaining bytes.
ReadInt64Bytes tries to read an int64 from 'b' and return the value and the remaining bytes.
ReadInt8Bytes tries to read an int16 from 'b' and return the value and the remaining bytes.
ReadMapHeaderBytes reads a map header size from 'b' and returns the remaining bytes.
ReadMapKeyZC attempts to read a map key from 'b' and returns the key bytes and the remaining bytes Possible errors: - ErrShortBytes (too few bytes) - TypeError{} (not a str or bin).
ReadNilBytes tries to read a "nil" byte off of 'b' and return the remaining bytes.
ReadStringAsBytes reads a 'str' object into a slice of bytes.
ReadStringBytes reads a 'str' object from 'b' and returns its value and the remaining bytes in 'b'.
ReadStringZC reads a messagepack string field without copying.
ReadTimeBytes reads a time.Time extension object from 'b' and returns the remaining bytes.
ReadUint16Bytes tries to read a uint16 from 'b' and return the value and the remaining bytes.
ReadUint32Bytes tries to read a uint32 from 'b' and return the value and the remaining bytes.
ReadUint64Bytes tries to read a uint64 from 'b' and return the value and the remaining bytes.
ReadUint8Bytes tries to read a uint8 from 'b' and return the value and the remaining bytes.
RegisterExtension registers extensions so that they can be initialized and returned by methods that decode `interface{}` values.
Require ensures that cap(old)-len(old) >= extra.
Resumable returns whether or not the error means that the stream of data is malformed and the information is unrecoverable.
Skip skips the next object in 'b' and returns the remaining bytes.
WrapError wraps an error with additional context that allows the part of the serialized type that caused the problem to be identified.
# Constants
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
Complex128Extension is the extension number used for complex128.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
Complex64Extension is the extension number used for complex64.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
MaxInt is the maximum int, which might be int32 or int64.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
TimeExtension is the extension number used for time.Time.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
The sizes provided are the worst-case encoded sizes for each type.
MessagePack Types
The zero value of Type is InvalidType.
# Variables
DefaultUnmarshalState defines the default state.
ErrShortBytes is returned when the slice being decoded is too short to contain the contents of the message.
# Structs
ArrayError is an error returned when decoding a fix-sized array of the wrong size.
ErrMaxDepthExceeded is returned if the maximum traversal depth is exceeded.
ErrUnsupportedType is returned when a bad argument is supplied to a function that takes `interface{}`.
ExtensionTypeError is an error type returned when there is a mis-match between an extension type and the type encoded on the wire.
IntOverflow is returned when a call would downcast an integer to a type with too few bits to hold its value.
RawExtension implements the Extension interface.
A TypeError is returned when a particular decoding method is unsuitable for decoding a particular MessagePack value.
UintBelowZero is returned when a call would cast a signed integer below zero to an unsigned integer.
UintOverflow is returned when a call would downcast an unsigned integer to a type with too few bits to hold its value.
UnmarshalState holds state while running UnmarshalMsg.
# Interfaces
Error is the interface satisfied by all of the errors that originate from this package.
Extension is the interface fulfilled by types that want to define their own binary encoding.
Marshaler is the interface implemented by types that know how to marshal themselves as MessagePack.
MaxSizer is an interface implemented by types that can determine their max when implemented.
Sizer is an interface implemented by types that can estimate their size when MessagePack encoded.
Unmarshaler is the interface fulfilled by objects that know how to unmarshal themselves from MessagePack.
# Type aliases
No description provided by the author
No description provided by the author
InvalidPrefixError is returned when a bad encoding uses a prefix that is not recognized in the MessagePack standard.
Raw is raw MessagePack.
Type is a MessagePack wire type, including this package's built-in extension types.