public class LongType extends BaseLongType
MagicMatcher.MutableOffset
endianConverter
Constructor and Description |
---|
LongType(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.
|
int |
getBytesPerType()
Return the number of bytes in this type.
|
long |
maskValue(long value)
Return the value with the appropriate bytes masked off corresponding to the bytes in the type.
|
static int |
staticCompare(Number extractedValue,
Number testValue)
Static compare of longs which are unsigned or signed.
|
decodeValueString, getStartingBytes
convertTestString, extractValueFromBytes, isMatch, renderValue
public LongType(EndianType endianType)
public int getBytesPerType()
getBytesPerType
in class NumberType
public long maskValue(long value)
NumberType
maskValue
in class NumberType
public int compare(boolean unsignedType, Number extractedValue, Number testValue)
NumberType
compare
in class NumberType
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.