unixfs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(val []byte) []byte

func ToData

func ToData(node dagpb.PBNode) (data.UnixFSData, error)

func ToPbnode

func ToPbnode(node ipld.Node) (dagpb.PBNode, error)

Types

type HashBits

type HashBits struct {
	Bits     []byte
	Consumed int
}

HashBits is a helper that allows the reading of the 'next n bits' as an integer.

func (*HashBits) Next

func (hb *HashBits) Next(i int) (int, error)

Next returns the next 'i' bits of the hashBits value as an integer, or an error if there aren't enough bits.

Jump to

Keyboard shortcuts

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