sparsefile

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SEEK_DATA = 3
	SEEK_HOLE = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SparseFileReader

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

func NewSparseFileReader

func NewSparseFileReader(file *os.File) (*SparseFileReader, error)

func (*SparseFileReader) Close

func (self *SparseFileReader) Close() error

func (*SparseFileReader) GetHoles

func (self *SparseFileReader) GetHoles() []sSparseHole

func (*SparseFileReader) HeaderSize

func (self *SparseFileReader) HeaderSize() int64

func (*SparseFileReader) Read

func (self *SparseFileReader) Read(p []byte) (int, error)

func (*SparseFileReader) Size

func (self *SparseFileReader) Size() int64

type SparseFileWrite

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

func NewSparseFileWriter

func NewSparseFileWriter(f *os.File, headerSize int64, size int64) *SparseFileWrite

func (*SparseFileWrite) Close

func (self *SparseFileWrite) Close() error

func (*SparseFileWrite) Write

func (self *SparseFileWrite) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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