Documentation
¶
Index ¶
- func BigEndianToUint32(bz []byte) uint32
- func MarshalJSONAny(m codec.JSONMarshaler, msg proto.Message) ([]byte, error)
- func MustMarshalJSONAny(m codec.JSONMarshaler, msg proto.Message) []byte
- func MustUnmarshalJSONAny(m codec.Marshaler, iface interface{}, bz []byte)
- func Uint32ToBigEndian(i uint32) []byte
- func UnmarshalJSONAny(m codec.Marshaler, iface interface{}, bz []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigEndianToUint32 ¶
BigEndianToUint32 returns an uint32 from big endian encoded bytes. If encoding is empty, zero is returned.
func MarshalJSONAny ¶
MarshalJSONAny is a convenience function for packing the provided value in an Any and then proto marshaling it to bytes
func MustMarshalJSONAny ¶
func MustMarshalJSONAny(m codec.JSONMarshaler, msg proto.Message) []byte
MustMarshalJSONAny is a convenience function for packing the provided value in an Any and then proto marshaling it to bytes
func MustUnmarshalJSONAny ¶
MustUnmarshalJSONAny is a convenience function for proto unmarshaling an Any from bz and then unpacking it to the interface pointer passed in as iface using the provided AnyUnpacker or panics
func Uint32ToBigEndian ¶
Uint32ToBigEndian - marshals uint32 to a bigendian byte slice so it can be sorted
func UnmarshalJSONAny ¶
UnmarshalJSONAny is a convenience function for proto unmarshaling an Any from bz and then unpacking it to the interface pointer passed in as iface using the provided AnyUnpacker or returning an error
Ex:
var x MyInterface err := UnmarshalJSONAny(unpacker, &x, bz)
Types ¶
This section is empty.