decode

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package decode unpacks stored programs and values from byte slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder decode.Decoder

func NewDecoder

func NewDecoder(signatures decode.SignatureTable) *Decoder

func (*Decoder) DecodeAssignment

func (d *Decoder) DecodeAssignment(a affine.Affinity, b []byte) (ret rt.Assignment, err error)

matches with mdl.marshalAssignment the expected eval depends on the affinity (a) of the destination field. fix? merge somehow with express.newAssignment? with compact decoding.

func (*Decoder) DecodeField

func (d *Decoder) DecodeField(a affine.Affinity, b []byte, fieldType string) (ret literal.LiteralValue, err error)

func (*Decoder) DecodeProg

func (d *Decoder) DecodeProg(b []byte) (ret []rt.Execute, err error)

Jump to

Keyboard shortcuts

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