Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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?
53
func
(f State) HasFlags(flags State) bool {
54
return
((f & flags) != 0) && ((f & flags) == flags)
55
}
56
57
// Set flags
58
func
(f *State) SetFlags(flags State) *State {
Callers
7
TestSerializationFinalDomain
Function · 0.45
TestCreate
Function · 0.45
TestExtendingOldNew
Function · 0.45
TestExtendingNewOld
Function · 0.45
TestSerializationJsonDomain
Function · 0.45
TestSerializationDomain
Function · 0.45
TestClone
Function · 0.45
Calls
no outgoing calls
Tested by
7
TestSerializationFinalDomain
Function · 0.36
TestCreate
Function · 0.36
TestExtendingOldNew
Function · 0.36
TestExtendingNewOld
Function · 0.36
TestSerializationJsonDomain
Function · 0.36
TestSerializationDomain
Function · 0.36
TestClone
Function · 0.36