public interface MspField
Modifier and Type | Interface and Description |
---|---|
static class |
MspField.FieldCompleteness
The enum class to describe the completeness of a MSP field.
|
Modifier and Type | Method and Description |
---|---|
Map<Integer,Byte> |
getMissingBytes()
Get the missing bytes of current MspField.
|
SecureString |
getValue()
Get the value of current MspField
|
Map<Integer,Byte> |
getVisibleBytes()
Get the visible bytes of current MspField.
|
MspField.FieldCompleteness |
isComplete()
Check the completeness of current MspField.
|
int |
updateMissingBytes(Map<Integer,Byte> missingBytes)
Update the missing byte map with value input by user.
|
Map<Integer,Byte> getMissingBytes()
isComplete()
to check if the
current MspFiled is incomplete. The returned value is a map with key being the index of the
missing byte and the value being '0x7F'.
This API is to facilitate developers with UI handling, e.g. they may need to
display something like "123x5x7x9x", the returned value for this case will be as below:
{{3, 0x7f}, {5, 0x7F}, {7, 0x7F}, {9, 0x7F}}getVisibleBytes()
,
updateMissingBytes(Map)
SecureString getValue()
Map<Integer,Byte> getVisibleBytes()
isComplete()
to check if the
current MspFiled is incomplete. The returned value is a map with key being the index of the
visible byte and the value.
This API is to facilitate developers with UI handling, e.g. they may need to
display something like "123x5x7x9x", the returned value for this case will be as below:
{{0, 1}, {1, 2}, {2, 3}, {4, 5}, {6, 7}, {8, 9}}getMissingBytes()
,
updateMissingBytes(Map)
MspField.FieldCompleteness isComplete()
getVisibleBytes()
,
getMissingBytes()
,
updateMissingBytes(Map)
int updateMissingBytes(Map<Integer,Byte> missingBytes)
missingBytes
- the map of all the missing bytes, the value is from user input.getVisibleBytes()
,
getMissingBytes()