stub

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prober

type Prober func(sector []byte) bool

Prober returns true if the sector has the desired format. The length of sector is usually 512.

func SimpleProber

func SimpleProber(magic []byte) Prober

SimpleProber provides a simple Prober.

type Stub

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

Stub implements image.Image.

func New

func New(ra io.ReaderAt, t image.Type, probers ...Prober) (*Stub, error)

New creates a stub.

func (*Stub) Close

func (img *Stub) Close() error

func (*Stub) Extent added in v0.5.0

func (img *Stub) Extent(start, length int64) (image.Extent, error)

func (*Stub) ReadAt

func (img *Stub) ReadAt([]byte, int64) (int, error)

func (*Stub) Readable

func (img *Stub) Readable() error

func (*Stub) Size

func (img *Stub) Size() int64

func (*Stub) Type

func (img *Stub) Type() image.Type

Jump to

Keyboard shortcuts

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