Documentation ¶
Index ¶
- Variables
- func AsBytes(v interface{}) []byte
- func BigintBinarySize(v *big.Int) int
- func BigintCopy(v *big.Int) *big.Int
- func BigintMarshalBinary(v *big.Int) []byte
- func BigintUnmarshalBinary(b []byte) (*big.Int, error)
- func BoolBinarySize(_ bool) int
- func BoolMarshalBinary(v bool) []byte
- func BoolUnmarshalBinary(b []byte) (bool, error)
- func BytesBinarySize(b []byte) int
- func BytesCopy(v []byte) []byte
- func BytesMarshalBinary(b []byte) []byte
- func BytesUnmarshalBinary(b []byte) ([]byte, error)
- func ChainBinarySize(v *[32]byte) int
- func ChainMarshalBinary(v *[32]byte) []byte
- func ChainSetBinarySize(v [][32]byte) int
- func ChainSetMarshalBinary(v [][32]byte) []byte
- func ChainSetUnmarshalBinary(b []byte) ([][32]byte, error)
- func ChainUnmarshalBinary(b []byte) ([32]byte, error)
- func DurationBinarySize(d time.Duration) int
- func DurationMarshalBinary(d time.Duration) []byte
- func DurationUnmarshalBinary(b []byte) (time.Duration, error)
- func SetPtr(value, target interface{}) (err error)
- func SplitDuration(d time.Duration) (sec, ns uint64)
- func StringBinarySize(s string) int
- func StringMarshalBinary(s string) []byte
- func StringUnmarshalBinary(b []byte) (string, error)
- func TimeBinarySize(v time.Time) int
- func TimeMarshalBinary(v time.Time) []byte
- func TimeUnmarshalBinary(b []byte) (time.Time, error)
- func UnmarshalEnumType(r io.Reader, value EnumValueSetter) error
- func UvarintBinarySize(v uint64) int
- func UvarintMarshalBinary(v uint64) []byte
- func UvarintUnmarshalBinary(b []byte) (uint64, error)
- func VarintBinarySize(v int64) int
- func VarintMarshalBinary(v int64) []byte
- func VarintUnmarshalBinary(b []byte) (int64, error)
- type BinaryValue
- type Byter
- type EnumValueGetter
- type EnumValueSetter
- type Error
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMalformedBigInt = errors.New("invalid big integer string")
View Source
var ErrNotEnoughData = errors.New("not enough data")
View Source
var ErrOverflow = errors.New("overflow")
Functions ¶
func BigintBinarySize ¶
func BigintMarshalBinary ¶
func BoolBinarySize ¶
func BoolMarshalBinary ¶
func BoolUnmarshalBinary ¶
func BytesBinarySize ¶
func BytesMarshalBinary ¶
func BytesUnmarshalBinary ¶
func ChainBinarySize ¶
ToDo: Why a parameter? It does nothing...
func ChainMarshalBinary ¶
func ChainSetBinarySize ¶
func ChainSetMarshalBinary ¶
func ChainSetUnmarshalBinary ¶
func ChainUnmarshalBinary ¶
func DurationBinarySize ¶
func DurationMarshalBinary ¶
func SetPtr ¶ added in v0.5.1
func SetPtr(value, target interface{}) (err error)
SetPtr sets *target = value
func SplitDuration ¶
func StringBinarySize ¶
func StringMarshalBinary ¶
func StringUnmarshalBinary ¶
func TimeBinarySize ¶
func TimeMarshalBinary ¶
func UnmarshalEnumType ¶
func UnmarshalEnumType(r io.Reader, value EnumValueSetter) error
func UvarintBinarySize ¶
func UvarintMarshalBinary ¶
func UvarintUnmarshalBinary ¶
func VarintBinarySize ¶
func VarintMarshalBinary ¶
func VarintUnmarshalBinary ¶
Types ¶
type BinaryValue ¶
type BinaryValue = encoding.BinaryValue
type Byter ¶
type Byter interface {
Bytes() []byte
}
Byter is implemented by any value that has a Bytes method.
type EnumValueGetter ¶ added in v0.5.1
type EnumValueGetter = encoding.EnumValueGetter
type EnumValueSetter ¶ added in v0.5.1
type EnumValueSetter = encoding.EnumValueSetter
Click to show internal directories.
Click to hide internal directories.