MCPcopy
hub / github.com/gogf/gf / BeEncodeBool

Function BeEncodeBool

encoding/gbinary/gbinary_be.go:106–112  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

104}
105
106func BeEncodeBool(b bool) []byte {
107 if b {
108 return []byte{1}
109 } else {
110 return []byte{0}
111 }
112}
113
114func BeEncodeInt(i int) []byte {
115 if i <= math.MaxInt8 {

Callers 1

BeEncodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…