Documentation ¶
Index ¶
- type MMap
- type MapLinux
- func (obj *MapLinux) Close() (err error)
- func (obj *MapLinux) Create(bytes int64, filename string) (b int64, err error)
- func (obj *MapLinux) CreateIfNeed(bytes int64, filename string) (b int64, err error)
- func (obj *MapLinux) Munmap(data []byte) (err error)
- func (obj *MapLinux) Set(offset uint64, f func(Algorithms.ValueType) Algorithms.ValueType) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MMap ¶
type MMap interface { // CreateIfNeed 创建映射文件 // 当已存在文件大小不一致,将重建新文件 CreateIfNeed(bytes int64, filename string) (int64, error) // Create 创建映射文件 // -- 任意时刻将强制创建新文件 Create(bytes int64, filename string) (int64, error) // Close 关闭映射文件 Close() error // Set 设置指定偏移值 Set(offset uint64, f func(Algorithms.ValueType) Algorithms.ValueType) error }
type MapLinux ¶
type MapLinux struct { Address uintptr //映射起点 Bytes uint64 //映射大小 FileSize uint64 //文件大小 // contains filtered or unexported fields }
func (*MapLinux) CreateIfNeed ¶
func (*MapLinux) Set ¶
func (obj *MapLinux) Set(offset uint64, f func(Algorithms.ValueType) Algorithms.ValueType) error
Click to show internal directories.
Click to hide internal directories.