Block

package
v0.0.0-...-d4978fa Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Length uint32
	Bytes  []byte
}

func New

func New() *Block

func (*Block) Decode

func (B *Block) Decode(b []byte) (out []byte)

func (*Block) DecodeOne

func (B *Block) DecodeOne(b []byte) *Block

func (*Block) Encode

func (B *Block) Encode() (out []byte)

func (*Block) Get

func (B *Block) Get() (b *wire.MsgBlock)

func (*Block) Put

func (B *Block) Put(b *wire.MsgBlock) *Block

Jump to

Keyboard shortcuts

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