binary

package
v6.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Package binary defines the CBOR representation of Dhall terms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAsCbor

func DecodeAsCbor(r io.Reader) (Term, error)

DecodeAsCbor decodes CBOR from the io.Reader and returns the resulting Expr

func EncodeAsCbor

func EncodeAsCbor(w io.Writer, e Term) error

EncodeAsCbor encodes a Term as CBOR and writes it to the io.Writer

func SemanticHash

func SemanticHash(e core.Value) ([]byte, error)

SemanticHash returns the semantic hash of an evaluated expression. The semantic hash is defined as the multihash-encoded sha256 sum of the CBOR representation of the fully alpha-beta-normalized expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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