Documentation ¶
Index ¶
- func DecodePreunit(data []byte) (gomel.Preunit, error)
- func EncodeUnit(unit gomel.Preunit) ([]byte, error)
- func ReadChunk(r io.Reader) ([]gomel.Preunit, error)
- func ReadDagInfos(r io.Reader) ([2]*gomel.DagInfo, error)
- func ReadPreunit(r io.Reader) (gomel.Preunit, error)
- func WriteChunk(units []gomel.Unit, w io.Writer) error
- func WriteDagInfos(infos [2]*gomel.DagInfo, w io.Writer) error
- func WriteUnit(unit gomel.Unit, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePreunit ¶
DecodePreunit checks decodes the given data into preunit. Complementary to EncodeUnit.
func EncodeUnit ¶
EncodeUnit encodes a unit to a slice of bytes.
func ReadDagInfos ¶
ReadDagInfos decodes a list of DagInfo instances from the given stream.
func ReadPreunit ¶
ReadPreunit decodes a preunit from reader.
func WriteChunk ¶
WriteChunk encodes units and writes them to writer.
func WriteDagInfos ¶
WriteDagInfos encodes a slice of DagInfos to writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.