rom

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Codec = 2020
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ROM

type ROM struct {
	Bytecode []byte
}

ROM is an immutable, read-only memory segment containing WASM bytecode. It is uniquely identified by its hash.

func Default

func Default() ROM

func Read

func Read(r io.Reader) (rom ROM, err error)

func (ROM) CID

func (rom ROM) CID() cid.Cid

func (ROM) Hash

func (rom ROM) Hash() []byte

func (ROM) String

func (rom ROM) String() string

String returns the rom as a string-formatted CID.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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