Documentation
¶
Index ¶
Constants ¶
View Source
const DataFilePerm = 0644
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileIO ¶
type FileIO struct {
// contains filtered or unexported fields
}
func NewFileIOManager ¶
type FileIOType ¶
type FileIOType = byte
const ( // StandardFIO standard file IO StandardFIO FileIOType = iota // MemoryMap memory-mapped file IO MemoryMap )
type IOManager ¶
type IOManager interface {
// Read reads data from the file at the specified offset.
Read([]byte, int64) (int, error)
// Write writes data to the file.
Write([]byte) (int, error)
// Sync syncs the data to disk.
Sync() error
// Close closes the file.
Close() error
// Size get the size of the file
Size() (int64, error)
}
func NewIOManager ¶
func NewIOManager(fileName string, ioType FileIOType) (IOManager, error)
NewIOManager Initializes an IOManager
type MMap ¶
type MMap struct {
// contains filtered or unexported fields
}
MMap (Memory Map a File) IO type
func NewMMapIOManager ¶
Click to show internal directories.
Click to hide internal directories.