simpleftl

package
v0.0.0-...-f56d8ae Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ftl

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

func New

func New(sectorSize int64, chip *flashblock.Chip) *Ftl

func (*Ftl) ReadAt

func (f *Ftl) ReadAt(p []byte, off int64) (int, error)

func (*Ftl) Size

func (f *Ftl) Size() int64

func (*Ftl) Trim

func (f *Ftl) Trim(off int64, length uint32) error

func (*Ftl) WriteAt

func (f *Ftl) WriteAt(p []byte, off int64) (int, error)

Jump to

Keyboard shortcuts

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