public class ByteType extends BaseLongType
MagicMatcher.MutableOffset
endianConverter
Constructor and Description |
---|
ByteType() |
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.
|
decodeValueString, getStartingBytes
convertTestString, extractValueFromBytes, isMatch, renderValue
public int getBytesPerType()
NumberType
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.