file

package
v0.0.0-...-af33e7b Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: BSD-3-Clause, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEADER_SIZE = 512
	PAGE_SIZE   = 128
)

Variables

This section is empty.

Functions

func NewDb

func NewDb(name string, options map[string][]string) (DatabaseService, error)

Types

type PageStore

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

func NewPageStore

func NewPageStore(filename string) (*PageStore, error)

func (*PageStore) AddPage

func (ps *PageStore) AddPage() (err error)

func (*PageStore) GetFreePage

func (ps *PageStore) GetFreePage() (int, error)

func (*PageStore) GetPage

func (ps *PageStore) GetPage(pgnum int) ([]byte, error)

func (*PageStore) NumPages

func (ps *PageStore) NumPages() int

Jump to

Keyboard shortcuts

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