Documentation ¶
Overview ¶
Package memory implements the ability to read and write blocks to memory using a slice.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory represents the serialization implementation for reading and storing blocks in memory using a slice. This implements the database.Storage interface.
func (*Memory) Close ¶
Close in this implementation has nothing to do since everything is in memory.
func (*Memory) ForEach ¶
ForEach returns an iterator to walk through all the blocks starting with block number 1.
Click to show internal directories.
Click to hide internal directories.