tooling

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressZstd

func CompressZstd(data []byte) ([]byte, error)

func DecompressZstd

func DecompressZstd(data []byte) ([]byte, error)

func LoadDataFromDataFrames

func LoadDataFromDataFrames(
	firstDataFrame *ipldbindcode.DataFrame,
	dataFrameGetter func(ctx context.Context, wantedCid cid.Cid) (*ipldbindcode.DataFrame, error),
) ([]byte, error)

Types

type BufferedWritableFile

type BufferedWritableFile struct {
	// contains filtered or unexported fields
}

func NewBufferedWritableFile

func NewBufferedWritableFile(path string) (*BufferedWritableFile, error)

NewBufferedWritableFile creates a new file for writing, with a buffer. The file is created at the given path; if the file already exists, it will be overwritten.

func (*BufferedWritableFile) Close

func (bwf *BufferedWritableFile) Close() error

func (*BufferedWritableFile) WriteString

func (bwf *BufferedWritableFile) WriteString(s string) error

Jump to

Keyboard shortcuts

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