Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_astria_primitive_v1_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Uint128 ¶
type Uint128 struct { Lo uint64 `protobuf:"varint,1,opt,name=lo,proto3" json:"lo,omitempty"` Hi uint64 `protobuf:"varint,2,opt,name=hi,proto3" json:"hi,omitempty"` // contains filtered or unexported fields }
A 128 bit unsigned integer encoded in protobuf.,
Protobuf does not support integers larger than 64 bits, so this message encodes a u128 by splitting it into its upper 64 and lower 64 bits, each encoded as a uint64.
A native u128 x can then be constructed by casting both integers to u128, left shifting hi by 64 positions and adding lo:
x = (hi as u128) << 64 + (lo as u128)
func (*Uint128) ProtoReflect ¶
func (x *Uint128) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.