|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectterrenus.telemetry.ShortSignatureChecker
public class ShortSignatureChecker
The ShortSignatureChecker
class checks signatures of
short (16-bit) values.
Constructor Summary | |
---|---|
ShortSignatureChecker(short[] signature,
short mask)
Creates a new checker. |
Method Summary | |
---|---|
int |
getDifferenceCount(java.nio.ByteBuffer buf)
Gets the number of bits different between the data and the known signature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShortSignatureChecker(short[] signature, short mask)
signature
- the signature pattern data.mask
- the mask value. Only the bits turned on in the
mask are used for comparing short values.Method Detail |
---|
public int getDifferenceCount(java.nio.ByteBuffer buf)
SignatureChecker
getDifferenceCount
in interface SignatureChecker
buf
- the data buffer to check.
|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |