xhop

package
v0.0.0-...-1e877d2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XHop

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

func New

func New() *XHop

func NewFromHex

func NewFromHex(s string) (*XHop, error)

func (*XHop) Dup

func (x *XHop) Dup() *XHop

func (*XHop) Equal

func (x *XHop) Equal(x2 *XHop) bool

func (*XHop) Hex

func (x *XHop) Hex() string

func (*XHop) IsRootXHop

func (x *XHop) IsRootXHop() bool

func (*XHop) MarshalJSON

func (x *XHop) MarshalJSON() ([]byte, error)

func (*XHop) Next

func (x *XHop) Next() *XHop

pading 100...0(seq 0) the x

func (*XHop) NextN

func (x *XHop) NextN(n uint64) *XHop

pading 100...0(n 0 in total) the x different to Next(), NextN do not touch x.c used for Test_Smoke used for Test_Hierarchy

func (*XHop) Parent

func (x *XHop) Parent() *XHop

1. strip the leftmost positive bit. 2. strip the leading zero bytes before 1. little endian

func (*XHop) String

func (x *XHop) String() string

String should only be used for human reading. The func does not take performance into account. little endian

Jump to

Keyboard shortcuts

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