mmap

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mmap

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

func NewMMAP

func NewMMAP(f *os.File, startOffset int64) (m *Mmap, err error)

func (*Mmap) Append

func (t *Mmap) Append(bs []byte) (n int64, err error)

func (*Mmap) AppendSync

func (t *Mmap) AppendSync(bs []byte) (n int64, err error)

func (*Mmap) Bytes

func (t *Mmap) Bytes() []byte

func (*Mmap) Close

func (t *Mmap) Close() (err error)

func (*Mmap) FileSize

func (t *Mmap) FileSize() int64

func (*Mmap) Flush

func (t *Mmap) Flush() error

func (*Mmap) Unmap

func (t *Mmap) Unmap() error

func (*Mmap) UnmapAndCloseFile

func (t *Mmap) UnmapAndCloseFile() (err error)

func (*Mmap) WriteAt added in v0.1.8

func (t *Mmap) WriteAt(bs []byte, offset int) (err error)

func (*Mmap) WriteAtSync added in v0.1.8

func (t *Mmap) WriteAtSync(bs []byte, offset int) (err error)

Jump to

Keyboard shortcuts

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