Documentation ¶
Index ¶
- Constants
- Variables
- type DirectoryMap
- type MemoryStorageReader
- func (v MemoryStorageReader) FindDirectoryEntry(id ledger.SectionID, ref reference.Holder) (ledger.Ordinal, error)
- func (v MemoryStorageReader) FindDirectoryEntryLocator(id ledger.SectionID, ref reference.Holder) (ledger.StorageLocator, error)
- func (v MemoryStorageReader) FinderOfFirst(ledger.SectionID) readbundle.DirectoryIndexFinder
- func (v MemoryStorageReader) FinderOfLast(ledger.SectionID) readbundle.DirectoryIndexFinder
- func (v MemoryStorageReader) FinderOfNext(sectionID ledger.SectionID) readbundle.DirectoryIndexFinder
- func (v MemoryStorageReader) GetDirectoryEntryLocator(index ledger.DirectoryIndex) (ledger.StorageLocator, error)
- func (v MemoryStorageReader) GetEntryStorage(locator ledger.StorageLocator) (readbundle.Slice, error)
- func (v MemoryStorageReader) GetPayloadStorage(locator ledger.StorageLocator, size int) (readbundle.Slice, error)
- type MemoryStorageWriter
- func (p *MemoryStorageWriter) DirtyReader() bundle.DirtyReader
- func (p *MemoryStorageWriter) GetDirectoryEntries(section ledger.SectionID) [][]bundle.DirectoryEntry
- func (p *MemoryStorageWriter) GetDirectoryEntry(index ledger.DirectoryIndex) bundle.DirectoryEntry
- func (p *MemoryStorageWriter) GetDirectoryEntryLocator(index ledger.DirectoryIndex) (ledger.StorageLocator, error)
- func (p *MemoryStorageWriter) GetEntryStorage(locator ledger.StorageLocator) (readbundle.Slice, error)
- func (p *MemoryStorageWriter) GetPayloadStorage(locator ledger.StorageLocator, size int) (readbundle.Slice, error)
- func (p *MemoryStorageWriter) IsReadOnly() bool
- func (p *MemoryStorageWriter) MarkReadOnly() error
- func (p *MemoryStorageWriter) PulseNumber() pulse.Number
- func (p *MemoryStorageWriter) TakeSnapshot() (bundle.Snapshot, error)
Constants ¶
View Source
const MinStoragePageSize = directoryEntrySize * 16
Variables ¶
View Source
var ErrCtlRecNotFound = throw.E("control record not found")
View Source
var ErrIndexSectionMismatch = throw.E("section mismatch by index")
View Source
var ErrIndexUnknownOrdinal = throw.E("unknown ordinal by index")
View Source
var ErrInvalidOrdinalIndex = throw.E("ordinal index has wrong size")
Functions ¶
This section is empty.
Types ¶
type DirectoryMap ¶
type MemoryStorageReader ¶
type MemoryStorageReader struct {
// contains filtered or unexported fields
}
func NewMemoryStorageReaderFromWriter ¶
func NewMemoryStorageReaderFromWriter(w *MemoryStorageWriter) MemoryStorageReader
func (MemoryStorageReader) FindDirectoryEntry ¶
func (MemoryStorageReader) FindDirectoryEntryLocator ¶
func (v MemoryStorageReader) FindDirectoryEntryLocator(id ledger.SectionID, ref reference.Holder) (ledger.StorageLocator, error)
func (MemoryStorageReader) FinderOfFirst ¶
func (v MemoryStorageReader) FinderOfFirst(ledger.SectionID) readbundle.DirectoryIndexFinder
func (MemoryStorageReader) FinderOfLast ¶
func (v MemoryStorageReader) FinderOfLast(ledger.SectionID) readbundle.DirectoryIndexFinder
func (MemoryStorageReader) FinderOfNext ¶
func (v MemoryStorageReader) FinderOfNext(sectionID ledger.SectionID) readbundle.DirectoryIndexFinder
func (MemoryStorageReader) GetDirectoryEntryLocator ¶
func (v MemoryStorageReader) GetDirectoryEntryLocator(index ledger.DirectoryIndex) (ledger.StorageLocator, error)
func (MemoryStorageReader) GetEntryStorage ¶
func (v MemoryStorageReader) GetEntryStorage(locator ledger.StorageLocator) (readbundle.Slice, error)
func (MemoryStorageReader) GetPayloadStorage ¶
func (v MemoryStorageReader) GetPayloadStorage(locator ledger.StorageLocator, size int) (readbundle.Slice, error)
type MemoryStorageWriter ¶
type MemoryStorageWriter struct {
// contains filtered or unexported fields
}
func NewMemoryStorageWriter ¶
func (*MemoryStorageWriter) DirtyReader ¶
func (p *MemoryStorageWriter) DirtyReader() bundle.DirtyReader
func (*MemoryStorageWriter) GetDirectoryEntries ¶
func (p *MemoryStorageWriter) GetDirectoryEntries(section ledger.SectionID) [][]bundle.DirectoryEntry
func (*MemoryStorageWriter) GetDirectoryEntry ¶
func (p *MemoryStorageWriter) GetDirectoryEntry(index ledger.DirectoryIndex) bundle.DirectoryEntry
func (*MemoryStorageWriter) GetDirectoryEntryLocator ¶
func (p *MemoryStorageWriter) GetDirectoryEntryLocator(index ledger.DirectoryIndex) (ledger.StorageLocator, error)
func (*MemoryStorageWriter) GetEntryStorage ¶
func (p *MemoryStorageWriter) GetEntryStorage(locator ledger.StorageLocator) (readbundle.Slice, error)
func (*MemoryStorageWriter) GetPayloadStorage ¶
func (p *MemoryStorageWriter) GetPayloadStorage(locator ledger.StorageLocator, size int) (readbundle.Slice, error)
func (*MemoryStorageWriter) IsReadOnly ¶
func (p *MemoryStorageWriter) IsReadOnly() bool
func (*MemoryStorageWriter) MarkReadOnly ¶
func (p *MemoryStorageWriter) MarkReadOnly() error
func (*MemoryStorageWriter) PulseNumber ¶
func (p *MemoryStorageWriter) PulseNumber() pulse.Number
func (*MemoryStorageWriter) TakeSnapshot ¶
func (p *MemoryStorageWriter) TakeSnapshot() (bundle.Snapshot, error)
Click to show internal directories.
Click to hide internal directories.