Documentation
¶
Index ¶
- func DecodeInt32(value []byte) (int32, int)
- func DecodeInt64(value []byte) (int64, int)
- func DecodeUint32(value []byte) (uint32, int)
- func DecodeUint64(value []byte) (uint64, int)
- func EncodeInt32(value int32) []byte
- func EncodeInt64(value int64) []byte
- func EncodeUint32(value uint32) []byte
- func EncodeUint64(value uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeInt32 ¶
DecodeInt32 decodes an int32 and returns the number of bytes used from the given leb128 encoded array `value`
func DecodeInt64 ¶
DecodeInt64 decodes an int64 and returns the number of bytes used from the given leb128 encoded array `value`
func DecodeUint32 ¶
DecodeUint32 decodes an uint32 and returns the number of bytes used from the given leb128 encoded array `value`
func DecodeUint64 ¶
DecodeUint64 decodes an uint64 and returns the number of bytes used from the given leb128 encoded array `value`
func EncodeInt32 ¶
EncodeInt32 encodes the `value` as leb128 encoded byte array
func EncodeInt64 ¶
EncodeInt64 encodes the `value` as leb128 encoded byte array
func EncodeUint32 ¶
EncodeUint32 encodes the `value` as leb128 encoded byte array
func EncodeUint64 ¶
EncodeUint64 encodes the `value` as leb128 encoded byte array
Types ¶
This section is empty.