serialization

package
v0.0.0-...-af98d8a Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(s []byte) ([]byte, error)

func DecodeToBlock

func DecodeToBlock(s []byte) (*blockchain.Block, error)

func DecodeToBlockTree

func DecodeToBlockTree(s []byte) (*blockchain.BlockTree, error)

func Decompress

func Decompress(s []byte) ([]byte, error)

func EncodeToBytes

func EncodeToBytes(p interface{}) ([]byte, error)

func ReadFromFile

func ReadFromFile(path string) ([]byte, error)

func WriteToFile

func WriteToFile(s []byte, file string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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