blockfile

package
v0.0.0-...-157ca18 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 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 BlockFile

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

func NewBlockFile

func NewBlockFile(filename string, hdrsz int) (h *BlockFile, e error)

func (*BlockFile) Block

func (h *BlockFile) Block(ptr uint) []byte

func (*BlockFile) Cap

func (h *BlockFile) Cap() uint

func (*BlockFile) Close

func (h *BlockFile) Close() error

func (*BlockFile) Flush

func (h *BlockFile) Flush() error

func (*BlockFile) Grow

func (h *BlockFile) Grow(blks uint) error

func (*BlockFile) Header

func (h *BlockFile) Header() []byte

func (*BlockFile) Resize

func (h *BlockFile) Resize(blks uint) error

func (*BlockFile) SetBlksz

func (h *BlockFile) SetBlksz(blksz int)

func (*BlockFile) Size

func (h *BlockFile) Size() int64

Jump to

Keyboard shortcuts

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