package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Feb 19, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
File is a page-file over an underlying random-access stream.
New instantiates a new page-file.
Alloc allocates a new page at the end of the page-file.
Read reads a page at the given index from the page-file.
Write writes a page back to the page-file.
type Memory struct {
Data []byte
Cursor int
}
Memory is an in-memory implementation of io.ReadWriteSeeker.
Read reads upto len(p) bytes into p from the stream.
Seek sets the offset for the next Read or Write.
Write writes upto len(p) bytes from p to the stream.
Page is a sequence of bytes in the page-file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.