public final class DtoaBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
kFastDtoaMaximalLength
Maximal length of numbers converted by FastDtoa
|
| Constructor and Description |
|---|
DtoaBuffer(int capacity)
Create a buffer with the given capacity.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(DtoaMode mode,
int digitsAfterPoint)
Returns the formatted buffer content as string, using the specified conversion mode and
padding.
|
int |
getDecimalPoint()
Get the position of the decimal point.
|
int |
getLength()
Returns the number of characters in the buffer.
|
String |
getRawDigits()
Get the raw digits of this buffer as string.
|
void |
reset()
Clear the buffer contents and set its length to
0. |
String |
toString() |
public static final int kFastDtoaMaximalLength
public DtoaBuffer(int capacity)
capacity - the capacity of the buffer.public void reset()
0.public String getRawDigits()
public int getDecimalPoint()
public int getLength()
public String format(DtoaMode mode, int digitsAfterPoint)
mode - conversion modedigitsAfterPoint - number of digits after point