MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / HasFlags

Method HasFlags

projects/Go/proto/proto/State.go:53–55  ·  view source on GitHub ↗

Is flags set?

(flags State)

Source from the content-addressed store, hash-verified

51
52// Is flags set?
53func (f State) HasFlags(flags State) bool {
54 return ((f & flags) != 0) && ((f & flags) == flags)
55}
56
57// Set flags
58func (f *State) SetFlags(flags State) *State {

Callers 7

TestCreateFunction · 0.45
TestExtendingOldNewFunction · 0.45
TestExtendingNewOldFunction · 0.45
TestSerializationDomainFunction · 0.45
TestCloneFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestCreateFunction · 0.36
TestExtendingOldNewFunction · 0.36
TestExtendingNewOldFunction · 0.36
TestSerializationDomainFunction · 0.36
TestCloneFunction · 0.36