Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalTo ¶
func UnmarshalTo(from io.WriterTo, to Unmarshaler) error
Types ¶
type BasicReader ¶
type BasicReader interface { // GetDirectoryEntry returns key and entry's locator for the given index. Invalid index will return (nil, 0) GetDirectoryEntryLocator(ledger.DirectoryIndex) (ledger.StorageLocator, error) // GetEntryStorage returns start of byte slice for the given locator. Invalid locator will return nil. GetEntryStorage(ledger.StorageLocator) (Slice, error) // GetPayloadStorage returns start of byte slice for the given locator and size. Invalid locator will return nil. // WARNING! Implementation MAY NOT check if size is longer than the actual content for the given locator. GetPayloadStorage(ledger.StorageLocator, int) (Slice, error) }
BasicReader provides basic read access. WARNING! Caller MUST NOT change the byte slice.
type DirectoryIndexFinder ¶
type DirectoryIndexFinder interface {
LookupByIndex(ledger.DirectoryIndex) (ledger.DirectoryIndex, error)
}
type FindProvider ¶
type FindProvider interface { FinderOfNext(ledger.SectionID) DirectoryIndexFinder FinderOfFirst(ledger.SectionID) DirectoryIndexFinder FinderOfLast(ledger.SectionID) DirectoryIndexFinder }
type ReadCabinet ¶
type Slice ¶
type Slice interface { longbits.FixedReader }
type Unmarshaler ¶
Click to show internal directories.
Click to hide internal directories.