mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
```bash for file in `cat diffys`; do printf '%s\n%s\n' "// Copyright 2021 Molecula Corp. All rights reserved." "$(cat $file)" >$file; done ```
29 lines
427 B
Go
29 lines
427 B
Go
// Copyright 2021 Molecula Corp. All rights reserved.
|
|
//go:build btreeInstrumentation
|
|
// +build btreeInstrumentation
|
|
|
|
package roaring
|
|
|
|
type dTree struct {
|
|
t *tree
|
|
}
|
|
|
|
type treeInst struct {
|
|
deCopied int64
|
|
}
|
|
|
|
func (t *tree) didCopy(n int) {
|
|
t.deCopied += int64(n)
|
|
}
|
|
|
|
func (d *d) didCopy(n int) {
|
|
d.t.deCopied += int64(n)
|
|
}
|
|
|
|
func (t *tree) countCopies() int64 {
|
|
return t.deCopied
|
|
}
|
|
|
|
func (d *d) setTree(t *tree) {
|
|
d.t = t
|
|
}
|