Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPointer = errors.New("invalid pointer") ErrDecodingBool = errors.New("error decoding boolean") ErrExceedingByteArrayLimit = errors.New("byte array length exceeds max value of uint32") ErrUnsupportedEnumTypeValue = errors.New("unsupported enum type value") ErrUnknownEnumTypeValue = errors.New("cannot find enum type value") ErrUnsupportedType = "unsupported type: %T" ErrReadingBytes = "error reading bytes: %w" ErrReadingByte = "error reading byte: %w" ErrDecodingUint = "error decoding uint: : %w" ErrEncodingMapFieldKeyType = "error encoding map field: unsupported map key type %v" ErrDecodingMapLength = "error decoding map length: %v" ErrDecodingMapKey = "error decoding map key: %v" ErrDecodingMapValue = "error decoding map value: %v" ErrEncodingStructField = "encoding struct field '%s': %w" ErrDecodingStructField = "decoding struct field '%s': %w" ErrInvalidLengthValue = "invalid length value in jam tag for field %s: %v" ErrUnSuportedFieldForCompactDecoding = "unsupported field kind for compact decoding: %s" ErrUnSuportedFieldForCompactEncoding = "unsupported field kind for compact encoding: %s" ErrConflictingTags = "conflicting struct tags on field %s: 'length' and 'encoding' cannot be used together" )
Functions ¶
Types ¶
type BitSequence ¶
type BitSequence []bool
type EncodeEnum ¶
type Marshaler ¶
Marshaler is the interface implemented by types that can marshal themselves into valid JAM encoded data.
type Unmarshaler ¶
Unmarshaler is the interface implemented by types that can unmarshal a JAM-encoded description of themselves.
Click to show internal directories.
Click to hide internal directories.