uint128

package
v0.0.0-...-ea98ea7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	// contains filtered or unexported fields
}

func (*Set) Add

func (s *Set) Add(x Uint128)

func (*Set) AddMulti

func (s *Set) AddMulti(a []Uint128)

func (*Set) AppendTo

func (s *Set) AppendTo(dst []Uint128) []Uint128

func (*Set) Clone

func (s *Set) Clone() *Set

Clone returns an independent copy of s.

func (*Set) Del

func (s *Set) Del(x Uint128)

Del deletes x from s.

func (*Set) Equal

func (s *Set) Equal(a *Set) bool

Equal returns true if s contains the same items as a.

func (*Set) ForEach

func (s *Set) ForEach(f func(part []Uint128) bool)

func (*Set) Has

func (s *Set) Has(x Uint128) bool

func (*Set) Intersect

func (s *Set) Intersect(a *Set)

func (*Set) Len

func (s *Set) Len() int

func (*Set) SizeBytes

func (s *Set) SizeBytes() uint64

func (*Set) Subtract

func (s *Set) Subtract(a *Set)

func (*Set) Union

func (s *Set) Union(a *Set)

func (*Set) UnionMayOwn

func (s *Set) UnionMayOwn(a *Set)

type Uint128

type Uint128 struct {
	Lo uint64
	Hi uint64
}

func New

func New(lo, hi uint64) Uint128

func Unmarshal

func Unmarshal(src []byte) (Uint128, []byte, error)

func (*Uint128) Equals

func (t *Uint128) Equals(v *Uint128) bool

func (*Uint128) Less

func (t *Uint128) Less(v *Uint128) bool

func (*Uint128) Marshal

func (t *Uint128) Marshal(dst []byte) []byte

func (*Uint128) Reset

func (t *Uint128) Reset()

func (*Uint128) String

func (t *Uint128) String() string

func (*Uint128) Unmarshal

func (t *Uint128) Unmarshal(src []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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