block

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0, MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(block Block, bind any, typ schema.Type, codec codec.Decoder, hasher hash.Hasher) error

Types

type Block

type Block interface {
	Link() ipld.Link
	Bytes() []byte
}

func Encode

func Encode(value any, typ schema.Type, codec codec.Encoder, hasher hash.Hasher) (Block, error)

func NewBlock

func NewBlock(link ipld.Link, bytes []byte) Block

Jump to

Keyboard shortcuts

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