For an application of this see the FPE parameter classes.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final int | |
| private final BigInteger[] | |
| private final BigInteger | |
| private static final double | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | RadixConverter(int
the radix to use for base conversions radix, int number of intermediate base powers to precompute and cache. numberOfCachedPowers)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BigInteger | |
| private long | |
| public int | |
| public int | |
| private BigInteger[] | |
| public void | |
| private int |
| DEFAULT_POWERS_TO_CACHE | back to summary |
|---|---|
| private static final int DEFAULT_POWERS_TO_CACHE | |
| digitsGroupLength | back to summary |
|---|---|
| private final int digitsGroupLength | |
| digitsGroupSpacePowers | back to summary |
|---|---|
| private final BigInteger[] digitsGroupSpacePowers | |
| digitsGroupSpaceSize | back to summary |
|---|---|
| private final BigInteger digitsGroupSpaceSize | |
| LOG_LONG_MAX_VALUE | back to summary |
|---|---|
| private static final double LOG_LONG_MAX_VALUE | |
| radix | back to summary |
|---|---|
| private final int radix | |
| RadixConverter | back to summary |
|---|---|
public RadixConverter(int radix, int numberOfCachedPowers)
| |
| RadixConverter | back to summary |
|---|---|
public RadixConverter(int radix)
| |
| fromEncoding | back to summary |
|---|---|
| public BigInteger fromEncoding(short[] digits) | |
| fromEncoding | back to summary |
|---|---|
| private long fromEncoding(int groupStartDigitIndex, int groupEndDigitIndex, short[] digits) | |
| getDigitsGroupLength | back to summary |
|---|---|
| public int getDigitsGroupLength() | |
| getRadix | back to summary |
|---|---|
| public int getRadix() | |
| precomputeDigitsGroupPowers | back to summary |
|---|---|
| private BigInteger[] precomputeDigitsGroupPowers(int numberOfCachedPowers, BigInteger digitsGroupSpaceSize) | |
| toEncoding | back to summary |
|---|---|
| public void toEncoding(BigInteger number, int messageLength, short[] out) | |
| toEncoding | back to summary |
|---|---|
| private int toEncoding(long number, int digitIndex, short[] out) | |