numeric

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagSinceRelative    = 0x8000000000000000
	FlagSinceEpochNumber = 0x2000000000000000
	FlagSinceBlockNumber = 0x0
	FlagSinceTimestamp   = 0x4000000000000000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capacity

type Capacity uint64

func NewCapacity

func NewCapacity(shannon uint64) Capacity

func NewCapacityFromCKBytes

func NewCapacityFromCKBytes(ckBytes float64) Capacity

func (Capacity) CKBytes

func (c Capacity) CKBytes() float64

func (Capacity) Shannon

func (c Capacity) Shannon() uint64

type Since

type Since uint64

func NewSinceFromAbsoluteBlockNumber

func NewSinceFromAbsoluteBlockNumber(blockNumber uint64) Since

func NewSinceFromAbsoluteEpochNumber

func NewSinceFromAbsoluteEpochNumber(epochNumber uint64) Since

func NewSinceFromAbsoluteTimestamp

func NewSinceFromAbsoluteTimestamp(timestamp uint64) Since

func NewSinceFromRelativeBlockNumber

func NewSinceFromRelativeBlockNumber(blockNumber uint64) Since

func NewSinceFromRelativeEpochNumber

func NewSinceFromRelativeEpochNumber(epochNumber uint64) Since

func NewSinceFromRelativeTimestamp

func NewSinceFromRelativeTimestamp(timestamp uint64) Since

Jump to

Keyboard shortcuts

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