public abstract class AbstractFloat extends Parameter implements FloatParameter
LICENSE_TYPE, V| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFloat(double val,
int length)
Constructs a floating-point object with a specified value and the length
equal to its native length in bytes.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte[] |
convertToBytes(double d)
Converts Java
double value to its native representation. |
protected abstract double |
convertToDouble(byte[] bytes)
Converts native representation of a floating-point value to Java
double value. |
java.lang.String |
getDebugInfo()
Return debug info for JNIWrapper parameter.
|
int |
getLength()
Returns the length of the parameter in memory.
|
double |
getValue()
Returns a floating-point value of the object instance.
|
void |
read(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Reads this parameter from a specified data source.
|
void |
setValue(double d)
Sets a floating-point value to a specified value.
|
java.lang.String |
toString() |
void |
write(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes this parameter to a specified data source.
|
acceptIOPerformer, asReturnValue, clone, dataBufferAssigned, equals, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, hashCode, indent, pop, push, read, read, setDataBuffer, toByteArray, writeprotected AbstractFloat(double val,
int length)
public int getLength()
Parametersizeof() operator.public void write(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameterwrite in class ParameterMemoryAccessViolationExceptionpublic void read(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameterread in class ParameterMemoryAccessViolationExceptionpublic double getValue()
FloatParametergetValue in interface FloatParameterprotected abstract double convertToDouble(byte[] bytes)
double value.protected abstract byte[] convertToBytes(double d)
double value to its native representation.public void setValue(double d)
FloatParametersetValue in interface FloatParameterpublic java.lang.String getDebugInfo()
ParametergetDebugInfo in class Parameterpublic java.lang.String toString()
toString in class java.lang.Object