Uint32

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 Uint32

type Uint32 struct {
	Bytes [4]byte
}

Uint32 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() *Uint32

func (*Uint32) Decode

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

func (*Uint32) DecodeOne

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

func (*Uint32) Encode

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

func (*Uint32) Get

func (b *Uint32) Get() uint32

func (*Uint32) Put

func (b *Uint32) Put(bits uint32) *Uint32

Jump to

Keyboard shortcuts

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