numv1

package
v8.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthNum        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNum          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNum = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Amount

type Amount 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"`
}

The quantity of a particular Asset. Represented as a 128-bit unsigned integer, split over two fields, `lo` and `hi`, representing the low- and high-order bytes of the 128-bit value, respectively. Clients must assemble these bits in their implementation into a `uint128` or comparable data structure, in order to model the Amount accurately.

func (*Amount) Descriptor

func (*Amount) Descriptor() ([]byte, []int)

func (*Amount) GetHi

func (m *Amount) GetHi() uint64

func (*Amount) GetLo

func (m *Amount) GetLo() uint64

func (*Amount) Marshal

func (m *Amount) Marshal() (dAtA []byte, err error)

func (*Amount) MarshalTo

func (m *Amount) MarshalTo(dAtA []byte) (int, error)

func (*Amount) MarshalToSizedBuffer

func (m *Amount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Amount) ProtoMessage

func (*Amount) ProtoMessage()

func (*Amount) Reset

func (m *Amount) Reset()

func (*Amount) Size

func (m *Amount) Size() (n int)

func (*Amount) String

func (m *Amount) String() string

func (*Amount) Unmarshal

func (m *Amount) Unmarshal(dAtA []byte) error

func (*Amount) XXX_DiscardUnknown

func (m *Amount) XXX_DiscardUnknown()

func (*Amount) XXX_Marshal

func (m *Amount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Amount) XXX_Merge

func (m *Amount) XXX_Merge(src proto.Message)

func (*Amount) XXX_Size

func (m *Amount) XXX_Size() int

func (*Amount) XXX_Unmarshal

func (m *Amount) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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