dictzip

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: BSD-2-Clause Imports: 9 Imported by: 1

README

A Go reader and writer for files in the random access dictzip format.

Docs

Documentation

Overview

Package dictzip provides a reader and writer for files in the random access `dictzip` format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(r io.Reader, filename string, level int) error

Levels range from 1 (BestSpeed) to 9 (BestCompression), Level 0 (NoCompression), -1 (DefaultCompression)

Types

type Reader

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

This implements the io.ReaderAt interface.

func NewReader

func NewReader(rs io.ReadSeeker) (*Reader, error)

func (*Reader) Get

func (dz *Reader) Get(start, size int64) ([]byte, error)

func (*Reader) GetB64

func (dz *Reader) GetB64(start, size string) ([]byte, error)

Start and size in base64 notation, such as used by the `dictunzip` program.

func (*Reader) ReadAt

func (dz *Reader) ReadAt(p []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

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