Documentation ¶
Index ¶
- func ReadMemoryMapMaxSizeMb(memoryMapMaxSizeMbString string) (uint32, error)
- type MemoryBuffer
- type MemoryMap
- type MemoryMappedFile
- func (mmf *MemoryMappedFile) Close() error
- func (mmf *MemoryMappedFile) GetStat() (datSize int64, modTime time.Time, err error)
- func (mmf *MemoryMappedFile) Name() string
- func (mmf *MemoryMappedFile) ReadAt(p []byte, off int64) (n int, err error)
- func (mm *MemoryMappedFile) Sync() error
- func (mmf *MemoryMappedFile) Truncate(off int64) error
- func (mmf *MemoryMappedFile) WriteAt(p []byte, off int64) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadMemoryMapMaxSizeMb ¶
Types ¶
type MemoryBuffer ¶
type MemoryBuffer struct { Buffer []byte // contains filtered or unexported fields }
type MemoryMap ¶
func (*MemoryMap) CreateMemoryMap ¶
func (*MemoryMap) DeleteFileAndMemoryMap ¶
func (mBuffer *MemoryMap) DeleteFileAndMemoryMap()
func (*MemoryMap) ReadMemory ¶
type MemoryMappedFile ¶
type MemoryMappedFile struct {
// contains filtered or unexported fields
}
func NewMemoryMappedFile ¶
func NewMemoryMappedFile(f *os.File, memoryMapSizeMB uint32) *MemoryMappedFile
func (*MemoryMappedFile) Close ¶
func (mmf *MemoryMappedFile) Close() error
func (*MemoryMappedFile) GetStat ¶
func (mmf *MemoryMappedFile) GetStat() (datSize int64, modTime time.Time, err error)
func (*MemoryMappedFile) Name ¶
func (mmf *MemoryMappedFile) Name() string
func (*MemoryMappedFile) ReadAt ¶
func (mmf *MemoryMappedFile) ReadAt(p []byte, off int64) (n int, err error)
func (*MemoryMappedFile) Sync ¶
func (mm *MemoryMappedFile) Sync() error
func (*MemoryMappedFile) Truncate ¶
func (mmf *MemoryMappedFile) Truncate(off int64) error
Click to show internal directories.
Click to hide internal directories.