proto source pure
1
13
func AppendAlwaysLengthDelimited
AppendAlwaysLengthDelimited appends a length-delimited field, including when bz is empty (emits a length-0 value). Required to match the wire format produced by gogoproto for fields marked `[(gogoproto.nullable) = false]`, which always serialize even when their underlying message has no non-zero fields.
func AppendDuration
AppendDuration appends a google.protobuf.Duration field.
func AppendFixed64
AppendFixed64 appends a fixed 64-bit field.
func AppendLengthDelimited
AppendLengthDelimited appends a length-delimited field. Returns buf unchanged when bz is empty (proto3 default for optional fields).
func AppendPackedVarintInt32
AppendPackedVarintInt32 appends a packed repeated int32 varint field. Negative values are sign-extended to 64 bits to match proto3 wire format. Returns buf unchanged when values is empty (proto3 default).
func AppendTag
AppendTag appends a protobuf tag (field number and wire type)
func AppendTime
AppendTime appends a google.protobuf.Timestamp field.
func AppendVarint
AppendVarint appends a varint field.
func DecodeString
DecodeString reads a string (length-prefixed) from the byte slice
func DecodeVarint
DecodeVarint reads a varint from the byte slice and returns the value and new position
func DurationMarshal
DurationMarshal returns the inner proto encoding of a google.protobuf.Duration (without the length-delimited field wrapper).
func MarshalAny
MarshalAny returns the wire encoding of a google.protobuf.Any message holding (typeURL, value). Used to match the cdc.MarshalInterface format produced by the Cosmos SDK proto codec when storing or verifying interface-typed messages (e.g. ClientState in the upgrade store).
func TimeMarshal
TimeMarshal returns a proto marshalled time.
1
3
- encoding/binary stdlib
- gno.land/p/nt/ufmt/v0 package
- time stdlib