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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?