Int64

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64

type Int64 struct {
	Bytes [8]byte
}

Int64 is a 32 bit value that stores an int32 (used for block height). I don't think the sign is preserved but block heights are never negative except with special semantics

func New

func New() *Int64

func (*Int64) Decode

func (b *Int64) Decode(by []byte) (out []byte)

func (*Int64) DecodeOne

func (b *Int64) DecodeOne(by []byte) *Int64

func (*Int64) Encode

func (b *Int64) Encode() []byte

func (*Int64) Get

func (b *Int64) Get() int64

func (*Int64) Put

func (b *Int64) Put(bits int64) *Int64

Jump to

Keyboard shortcuts

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