vhd

package
v0.0.0-...-79a645e Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapFixed

func WrapFixed(w io.Writer, f vio.File) error

WrapFixed ..

Types

type DynamicWriter

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

func NewDynamicWriter

func NewDynamicWriter(w io.WriteSeeker, h HolePredictor) (*DynamicWriter, error)

func (*DynamicWriter) Close

func (w *DynamicWriter) Close() error

func (*DynamicWriter) Seek

func (w *DynamicWriter) Seek(offset int64, whence int) (int64, error)

func (*DynamicWriter) Write

func (w *DynamicWriter) Write(p []byte) (n int, err error)

type FixedWriter

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

func NewFixedWriter

func NewFixedWriter(w io.WriteSeeker, h HolePredictor) (*FixedWriter, error)

func (*FixedWriter) Close

func (w *FixedWriter) Close() error

func (*FixedWriter) Seek

func (w *FixedWriter) Seek(offset int64, whence int) (int64, error)

func (*FixedWriter) Write

func (w *FixedWriter) Write(p []byte) (n int, err error)

type HolePredictor

type HolePredictor interface {
	Size() int64
	RegionIsHole(begin, size int64) bool
}

Jump to

Keyboard shortcuts

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