dictzip

package
v0.0.0-...-445cf5a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: AGPL-3.0, MIT, BSD-2-Clause Imports: 4 Imported by: 0

README

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

Docs

Documentation

Overview

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

Note: this is not concurrent-safe, since it calls fp.Seek()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Reader, This implements the io.ReadSeekCloser interface.

func NewReader

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

func (*Reader) Close

func (dz *Reader) Close() 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