cache

package
v0.0.0-...-38b2fb8 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(reader io.ReaderAt, fileSize int64, maxBlocks, blockSize int) io.ReaderAt

New returns a io.ReaderAt that provides very simple caching around the given ReaderAt. The fileSize must match the underlying file to avoid unexpected EOF errors during reads. The given blockSize should be a power of 2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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