disk

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	io.ReaderAt
	io.Closer
	ReadFile(w *bufio.Writer, off, length int64) error
	GetSize() uint64
}

Device is a disk device object

func Open added in v1.0.23

func Open(in string) (Device, error)

type Generic added in v1.0.23

type Generic struct {
	io.ReaderAt
	io.Closer
	// contains filtered or unexported fields
}

func NewGeneric added in v1.0.23

func NewGeneric(r io.ReaderAt) *Generic

func (*Generic) Close added in v1.0.23

func (g *Generic) Close() error

func (*Generic) GetSize added in v1.0.23

func (g *Generic) GetSize() uint64

func (*Generic) ReadFile added in v1.0.23

func (g *Generic) ReadFile(w *bufio.Writer, off, length int64) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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