MCPcopy
hub / github.com/etcd-io/bbolt / Init

Method Init

internal/freelist/array.go:16–19  ·  view source on GitHub ↗
(ids common.Pgids)

Source from the content-addressed store, hash-verified

14}
15
16func (f *array) Init(ids common.Pgids) {
17 f.ids = ids
18 f.reindex()
19}
20
21func (f *array) Allocate(txid common.Txid, n int) common.Pgid {
22 if len(f.ids) == 0 {

Callers

nothing calls this directly

Calls 1

reindexMethod · 0.80

Tested by

no test coverage detected