MCPcopy Index your code
hub / github.com/CodisLabs/codis / toInt64

Method toInt64

pkg/utils/sync2/atomic2/bool.go:22–28  ·  view source on GitHub ↗
(v bool)

Source from the content-addressed store, hash-verified

20}
21
22func (b *Bool) toInt64(v bool) int64 {
23 if v {
24 return 1
25 } else {
26 return 0
27 }
28}
29
30func (b *Bool) Set(v bool) {
31 b.c.Set(b.toInt64(v))

Callers 3

SetMethod · 0.95
CompareAndSwapMethod · 0.95
SwapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected