Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDuplicateKey = errors.New("duplicate keys aren't supported")
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is an index into a datafile, backed by an mmap'd file.
func (*Table) MaybeLookup ¶
func (t *Table) MaybeLookup(b []byte) datafile.PackedOffset
MaybeLookup searches for b in t and returns its potential index.
func (*Table) MaybeLookupString ¶
func (t *Table) MaybeLookupString(s string) datafile.PackedOffset
MaybeLookupString searches for b in t and returns its potential index.
Click to show internal directories.
Click to hide internal directories.