mmapSpan

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MPL-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MMapSpan

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

func New

func New(mMaps []Mmap, index segments.Index) *MMapSpan

func (*MMapSpan) Close

func (ms *MMapSpan) Close() (err error)

func (*MMapSpan) Flush

func (ms *MMapSpan) Flush() (err error)

func (*MMapSpan) ReadAt

func (ms *MMapSpan) ReadAt(p []byte, off int64) (n int, err error)

func (*MMapSpan) WriteAt

func (ms *MMapSpan) WriteAt(p []byte, off int64) (n int, err error)

type Mmap

type Mmap interface {
	Flush() error
	Unmap() error
	Bytes() []byte
}

Jump to

Keyboard shortcuts

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