public class FloatType extends DoubleType
MagicMatcher.MutableOffset
endianConverter
Constructor and Description |
---|
FloatType(EndianType endianType) |
Modifier and Type | Method and Description |
---|---|
int |
compare(boolean unsignedType,
Number extractedValue,
Number testValue)
Return -1 if extractedValue is < testValue, 1 if it is >, 0 if it is equals.
|
Number |
decodeValueString(String valueStr)
Decode the test string value.
|
int |
getBytesPerType()
Return the number of bytes in this type.
|
protected Object |
longToObject(Long value)
Convert a long to the type.
|
extractValueFromBytes, getStartingBytes, maskValue
convertTestString, isMatch, renderValue
public FloatType(EndianType endianType)
public Number decodeValueString(String valueStr) throws NumberFormatException
NumberType
decodeValueString
in class DoubleType
NumberFormatException
public int compare(boolean unsignedType, Number extractedValue, Number testValue)
NumberType
compare
in class DoubleType
protected Object longToObject(Long value)
DoubleType
longToObject
in class DoubleType
public int getBytesPerType()
DoubleType
getBytesPerType
in class DoubleType
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.