gotypes

package
v0.0.0-...-73c8340 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtoFromUInt128

func ProtoFromUInt128(u *UInt128) *typespb.UInt128

ProtoFromUInt128 converts the UInt128 into a UInt128 proto.

Types

type UInt128

type UInt128 struct {
	High uint64
	Low  uint64
}

UInt128 represents a 128 bit unsigned integer which wraps two uint64s.

func UInt128FromProto

func UInt128FromProto(pb *typespb.UInt128) *UInt128

UInt128FromProto converts the UInt128 proto into a UInt128.

func (UInt128) Compare

func (u UInt128) Compare(o *UInt128) int

Compare compares the two UInt128s.

func (UInt128) Equal

func (u UInt128) Equal(o *UInt128) bool

Equal returns whether or not the UInt128 are equal. Copied from https://github.com/cockroachdb/cockroach/blob/c097a16427f65e9070991f062716d222ea5903fe/pkg/util/uint128/uint128.go.

Jump to

Keyboard shortcuts

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