Int32

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int32

type Int32 struct {
	Bytes [4]byte
}

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

func (*Int32) Decode

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

func (*Int32) DecodeOne

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

func (*Int32) Encode

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

func (*Int32) Get

func (b *Int32) Get() int32

func (*Int32) Put

func (b *Int32) Put(bits int32) *Int32

Jump to

Keyboard shortcuts

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