raw

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: 4 Imported by: 5

Documentation

Index

Constants

View Source
const Type = image.Type("raw")

Variables

This section is empty.

Functions

This section is empty.

Types

type Raw

type Raw struct {
	io.ReaderAt `json:"-"`
}

Raw implements image.Image.

func Open

func Open(ra io.ReaderAt) (*Raw, error)

Open opens a raw image.

func (*Raw) Close

func (img *Raw) Close() error

func (*Raw) Extent added in v0.5.0

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

Extent returns an allocated extent starting at the specified offset with specified length. It is used when the speicfic image type does not implement Extent(). The implementation is correct but inefficient. Fails if image size is unknown.

func (*Raw) Readable

func (img *Raw) Readable() error

func (*Raw) Size

func (img *Raw) Size() int64

func (*Raw) Type

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

Jump to

Keyboard shortcuts

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