(i int)
| 112 | } |
| 113 | |
| 114 | func BeEncodeInt(i int) []byte { |
| 115 | if i <= math.MaxInt8 { |
| 116 | return BeEncodeInt8(int8(i)) |
| 117 | } else if i <= math.MaxInt16 { |
| 118 | return BeEncodeInt16(int16(i)) |
| 119 | } else if i <= math.MaxInt32 { |
| 120 | return BeEncodeInt32(int32(i)) |
| 121 | } else { |
| 122 | return BeEncodeInt64(int64(i)) |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | func BeEncodeUint(i uint) []byte { |
| 127 | if i <= math.MaxUint8 { |
no test coverage detected
searching dependent graphs…