mmap

包 mmap 提供了一个内存映射文件的接口。「Package mmap provides an interface to memory mapped files.」

  • 所有者: go-util/mmap
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

mmap

GoDoc
Build Status
Go Report Card
Coverage

Package mmap provides an interface to memory mapped files.

Memory maps can be opened as read-only with Read or read-write with Write.
To specify additional flags and a file mode use Open.

There are two different ways to work with memory maps.
They cannot be used simultaneously.
Creating a Direct accessor will fail if any Readers or Writers are open.
Creating Reader or Writer will fail if any Direct accessors are open.

The first is through direct access via a Direct, which is a pointer to a byte slice.
This lets you write directly to the mapped memory, but you will need to manage access
between go routines.

The second is through Readers and Writers.
These implement the standard interfaces from the io package and can be treated like files
while still benefitting from the improved performance of memory mapping.

You can have multiple Readers and Writers.
The map will ensure that writes don't conflict with reads. That is, the underlying map
won't change during the middle of a read.

When the map is resized via Truncate, all open Direct, Reader, and Writer objects are closed.

主要指标

概览
名称与所有者go-util/mmap
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2017-07-26 13:29:19
推送于2018-10-07 18:22:09
最后一次提交2018-10-07 14:22:04
发布数1
最新版本名称v0.0.1 (发布于 2018-09-22 23:28:50)
第一版名称v0.0.1 (发布于 2018-09-22 23:28:50)
用户参与
星数25
关注者数4
派生数3
提交数20
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?