ioutils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressAndWriteUints32 added in v1.1.0

func CompressAndWriteUints32(w io.Writer, input []uint32, buffer []uint32) ([]uint32, error)

CompressAndWriteUints32 compresses a slice of uint32 and writes it to w. It returns the input buffer (possibly extended) for future use.

func CompressAndWriteUints64 added in v1.1.0

func CompressAndWriteUints64(w io.Writer, input []uint64) error

CompressAndWriteUints64 compresses a slice of uint64 and writes it to w. It returns the input buffer (possibly extended) for future use.

func ReadAndDecompressUints32 added in v1.1.0

func ReadAndDecompressUints32(in []byte, buf32 []uint32) (outbuf32 []uint32, read int, out []uint32, err error)

ReadAndDecompressUints32 reads a compressed slice of uint32 from r and decompresses it. It returns the number of bytes read, the decompressed slice and an error.

func ReadAndDecompressUints64 added in v1.1.0

func ReadAndDecompressUints64(in []byte) (int, []uint64, error)

ReadAndDecompressUints64 reads a compressed slice of uint64 from r and decompresses it. It returns the number of bytes read, the decompressed slice and an error.

Types

type WriterCounter

type WriterCounter struct {
	W io.Writer
	N int64
}

func (*WriterCounter) Write

func (w *WriterCounter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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