Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultGrowPolicy(current int, atLeast int) (next int)
- type Args
- type Grower
- type Mmap
- func (m *Mmap) Bytes(offset int64, length int) ([]byte, error)
- func (m *Mmap) Cap() int
- func (m *Mmap) ChangeGrowPolicy(newGrowPolicy Grower)
- func (m *Mmap) Close() error
- func (m *Mmap) Copy(srcPos, dstPos int64, length int) error
- func (m *Mmap) EnsureCapacity(size int) error
- func (m *Mmap) IsClosed() bool
- func (m *Mmap) ReadAt(p []byte, off int64) (n int, err error)
- func (m *Mmap) ReaderAt(off int64) Reader
- func (m *Mmap) WriteAt(p []byte, off int64) (n int, err error)
- func (m *Mmap) WriteTo(w io.Writer) (n int64, err error)
- func (m *Mmap) WriteToAt(offset int64, w io.Writer) (n int64, err error)
- func (m *Mmap) WriterAt(off int64) Writer
- type Opener
- type Reader
- type Writer
Constants ¶
View Source
const DefaultInitLength = oneMB
Variables ¶
View Source
var ErrIsClosed = fmt.Errorf("mmap is closed")
View Source
var ErrOverflow = fmt.Errorf("mmap access out of bound")
Functions ¶
func DefaultGrowPolicy ¶
Types ¶
type Mmap ¶
type Mmap struct {
// contains filtered or unexported fields
}
func (*Mmap) ChangeGrowPolicy ¶
func (*Mmap) EnsureCapacity ¶
Click to show internal directories.
Click to hide internal directories.