Debian Codegraph @

compatibility.go

raw
1 package centrifuge
2
3 const (
4 // UseSeqGen enables using Seq and Gen fields instead of Offset.
5 UseSeqGen uint64 = 1 << iota
6 )
7
8 // CompatibilityFlags is a global set of legacy features we support
9 // for backwards compatibility.
10 //
11 // Should be removed with v1 library release.
12 // TODO v1: remove.
13 var CompatibilityFlags uint64
14
15 func hasFlag(flags, flag uint64) bool {
16 return flags&flag != 0
17 }