encoding

package
v0.0.0-...-fc88c08 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePreunit

func DecodePreunit(data []byte) (gomel.Preunit, error)

DecodePreunit checks decodes the given data into preunit. Complementary to EncodeUnit.

func EncodeUnit

func EncodeUnit(unit gomel.Preunit) ([]byte, error)

EncodeUnit encodes a unit to a slice of bytes.

func ReadChunk

func ReadChunk(r io.Reader) ([]gomel.Preunit, error)

ReadChunk decodes slice of preunit antichains from reader.

func ReadDagInfos

func ReadDagInfos(r io.Reader) ([2]*gomel.DagInfo, error)

ReadDagInfos decodes a list of DagInfo instances from the given stream.

func ReadPreunit

func ReadPreunit(r io.Reader) (gomel.Preunit, error)

ReadPreunit decodes a preunit from reader.

func WriteChunk

func WriteChunk(units []gomel.Unit, w io.Writer) error

WriteChunk encodes units and writes them to writer.

func WriteDagInfos

func WriteDagInfos(infos [2]*gomel.DagInfo, w io.Writer) error

WriteDagInfos encodes a slice of DagInfos to writer.

func WriteUnit

func WriteUnit(unit gomel.Unit, w io.Writer) error

WriteUnit writes encoded unit to writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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