disk

package
v0.0.0-...-d427792 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitDiskSize = 257 // 256 + 1
)

Variables

This section is empty.

Functions

func New

func New(path string) (*disk, error)

Types

type Block

type Block interface {
	Buffer() []byte
	BlockNumber() int64
}

type Disk

type Disk interface {
	Close() error
	Flush() error
	Blocks() int64
	Write(Block) error
	Read(int64, []byte) (Block, error)
}

Jump to

Keyboard shortcuts

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