bufseekio

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 3 Imported by: 6

README

bufseekio

bufseekio provies buffered I/O with io.Seeker interface.

ReadSeeker

// cache block size   : 128KBytes
// cache block history: 4
r := bufseekio.NewReadSeeker(file, 128 * 1024, 4)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadSeeker

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

func NewReadSeeker

func NewReadSeeker(r io.ReadSeeker, blockSize, historySize int) *ReadSeeker

func (*ReadSeeker) Read

func (r *ReadSeeker) Read(p []byte) (int, error)

func (*ReadSeeker) Seek

func (r *ReadSeeker) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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