utils

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigEndianToUint32

func BigEndianToUint32(bz []byte) uint32

BigEndianToUint32 returns an uint32 from big endian encoded bytes. If encoding is empty, zero is returned.

func PackAny added in v0.0.9

func PackAny(msg proto.Message) (*types.Any, error)

func Uint32ToBigEndian

func Uint32ToBigEndian(i uint32) []byte

Uint32ToBigEndian - marshals uint32 to a bigendian byte slice so it can be sorted

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL