Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_PAGE_SIZE = 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page is an indexed representation of a chunk of memory
type Pager ¶
type Pager struct {
// contains filtered or unexported fields
}
Pager is a tool used to reference chunks of memory (pages) Allows retrieval, allocation, and setting memory contents by an index
func NewPager ¶
NewPager constructs a new pager with the specified pageSize Defaults the page size to 1024 bytes if passed a size of 0
func (*Pager) GetOrAlloc ¶
GetOrAlloc will return the page at the specified index, allocating it if not already allocated
Click to show internal directories.
Click to hide internal directories.