encodeLargeNumber encodes the exponent and mantissa into a buffer; only used when the exponent is larger than 10. See encodeVarExpNumber.
(negative bool, e int, m []byte, encInto []byte)
| 213 | // encodeLargeNumber encodes the exponent and mantissa into a buffer; only used |
| 214 | // when the exponent is larger than 10. See encodeVarExpNumber. |
| 215 | func encodeLargeNumber(negative bool, e int, m []byte, encInto []byte) []byte { |
| 216 | if negative { |
| 217 | onesComplement(m) |
| 218 | return encodeVarExpNumber(decimalNegLarge, false, uint64(e), m, encInto) |
| 219 | } |
| 220 | return encodeVarExpNumber(decimalPosLarge, true, uint64(e), m, encInto) |
| 221 | } |
| 222 | |
| 223 | // encodeMediumNumber encodes the exponent and mantissa into a buffer, only used |
| 224 | // when the exponent is in [0, 10]. |
no test coverage detected
searching dependent graphs…