MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / NewBitMapStructure

Function NewBitMapStructure

structure/bitmap_1.go:21–27  ·  view source on GitHub ↗

NewBitMapStructure returns a new BitMapStructure It will return a nil BitMapStructure if the database cannot be opened or the database cannot be created The database will be created if it does not exist

(options config.Options)

Source from the content-addressed store, hash-verified

19// or the database cannot be created
20// The database will be created if it does not exist
21func NewBitMapStructure(options config.Options) (*BitMapStructure, error) {
22 db, err := engine.NewDB(options)
23 if err != nil {
24 return nil, err
25 }
26 return &BitMapStructure{db: db}, nil
27}
28
29// SetBit Set the bit at the specified offset in the bitmap to the specified value
30// If the key does not exist, it will be created

Callers 2

initBitMapFunction · 0.85

Calls 1

NewDBFunction · 0.92

Tested by 2

initBitMapFunction · 0.68