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