sst

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FOOTER_SIZE = 48
	MAGIC       = "\x57\xfb\x80\x8b\x24\x75\x47\xdb"
)
View Source
const (
	BlockRestartInterval = 16
	BlockSize            = 4096
	BlockTrailerLen      = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

type Iterator interface {
	Next() bool
	Key() []byte
	Value() []byte
	Close() error
}

type Reader

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

func NewReader

func NewReader(r io.ReadSeeker, length int64) (*Reader, error)

func (*Reader) Find

func (r *Reader) Find(key []byte) (Iterator, error)

func (*Reader) Get

func (r *Reader) Get(key []byte) (value []byte, err error)

type Writer

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

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Close

func (w *Writer) Close() (err error)

func (*Writer) Set

func (w *Writer) Set(key, value []byte) error

Jump to

Keyboard shortcuts

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