public final class MemoryCharConversion_doubleUTF8 extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
put(double value,
long address)
This algorithm is somewhere from 3 times to 25 times (depending on exponent) faster than the
infinite spaghetti code used in JDK.
|
public static final long put(double value,
long address)
Otherwise, the behavior of the algorithm is the same as that of the JDK implementation (i.e. decimal point character '.', denormalized representation in range ]1E7; 1E-3], exponent character 'E', etc.
Note that this method is intended as an implementation detail and a "know-what-you-are-doing" tool that does
not perform array bound checks. If array bound checking is desired, use VarString.add(double)explicitly.
value - the value to be represented as a character sequence.address - the memory address where the character sequence shall start.Copyright © 2022 MicroStream Software. All rights reserved.