public class Id3LengthType extends IntegerType
MagicMatcher.MutableOffset
endianConverter
Constructor and Description |
---|
Id3LengthType(EndianType endianType) |
Modifier and Type | Method and Description |
---|---|
Object |
extractValueFromBytes(int offset,
byte[] bytes,
boolean required)
Extract the value from the bytes either for doing the match or rendering it in the format.
|
compare, getBytesPerType, maskValue
decodeValueString, getStartingBytes
convertTestString, isMatch, renderValue
public Id3LengthType(EndianType endianType)
public Object extractValueFromBytes(int offset, byte[] bytes, boolean required)
MagicMatcher
extractValueFromBytes
in interface MagicMatcher
extractValueFromBytes
in class NumberType
offset
- Number of bytes into the bytes array that we are extracting from.bytes
- Array of bytes we are extracting from.required
- Whether or not the extracted value is required for later. If it is not then the type may opt to not
extract the value and to do the matching directly.MagicMatcher.isMatch(Object, Long, boolean, Object, MutableOffset, byte[])
or null
if not enough bytes.This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.