Documentation ¶
Index ¶
- type Entry
- type Reader
- func (r *Reader) Find(want uint16) (*Entry, error)
- func (r *Reader) FindAll(want uint16) ([]*Entry, error)
- func (r *Reader) LengthAt(off int64) (int64, error)
- func (r *Reader) Read() (*Entry, error)
- func (r *Reader) ReadAt(entry *Entry, off int64) (int, error)
- func (r *Reader) ReadMetadataAt(off int64) (typ uint16, length uint32, err error)
- func (r *Reader) ReaderAt(expectedType uint16, off int64) (io.Reader, int, error)
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
A Reader reads entries from an e2store-encoded file. For more information on this format, see https://github.com/status-im/nimbus-eth2/blob/stable/docs/e2store.md
func (*Reader) LengthAt ¶
LengthAt reads the header at off and returns the total length of the entry, including header.
func (*Reader) ReadMetadataAt ¶
ReadMetadataAt reads the header metadata at the given offset.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes entries using e2store encoding. For more information on this format, see: https://github.com/status-im/nimbus-eth2/blob/stable/docs/e2store.md
Click to show internal directories.
Click to hide internal directories.