(b bool)
| 104 | } |
| 105 | |
| 106 | func BeEncodeBool(b bool) []byte { |
| 107 | if b { |
| 108 | return []byte{1} |
| 109 | } else { |
| 110 | return []byte{0} |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | func BeEncodeInt(i int) []byte { |
| 115 | if i <= math.MaxInt8 { |
no outgoing calls
no test coverage detected
searching dependent graphs…