file

package
v0.0.0-...-6dfdce2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	io.ReaderAt
	io.WriterAt

	Stat() (fs.FileInfo, error)
}

type Store

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

func New

func New(f File) (*Store, error)

func (*Store) AddBlock

func (s *Store) AddBlock(b *domain.Block) (domain.Word, error)

func (*Store) FreeBlock

func (s *Store) FreeBlock(id domain.Word) error

func (*Store) ReadBlock

func (s *Store) ReadBlock(id domain.Word, b *domain.Block) error

func (*Store) WriteBlock

func (s *Store) WriteBlock(id domain.Word, b *domain.Block) (domain.Word, error)

Jump to

Keyboard shortcuts

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