zstd

package
v1.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package zstd provides utilities for connecting to external zStandard compression tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(filename string) io.ReadCloser

NewReader creates a reader piped to external zstd process reading from file. This function is only expected to be used for tests, so all errors are fatal.

Users of this function should read from the returned pipe and close it when done. TODO return errors

func NewWriter

func NewWriter(filename string) (io.WriteCloser, error)

NewWriter creates a writer piped to an external zstd process writing to filename. It returns a WriteCloser that pipes all writes through a zstd compression process. Upon Close(), the returned WriteCloser will wait for the zstd process to finish writing to disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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