Package org.metricshub.ipmi.core.common
Class MessageComposer
java.lang.Object
org.metricshub.ipmi.core.common.MessageComposer
Class used for composing byte messages aout from smaller byte subarrays.
-
Method Summary
Modifier and TypeMethodDescriptionappendField
(byte fieldData) Append single-byte field to the message.appendField
(byte[] fieldData) Append byte arrach field to the message.static MessageComposer
get
(int messageSize) byte[]
Returns final message consisting all messages appended till now.
-
Method Details
-
get
-
appendField
Append single-byte field to the message.- Parameters:
fieldData
- single byte containing data that should be appended
-
appendField
Append byte arrach field to the message.- Parameters:
fieldData
- byte array containing data that should be appended
-
getMessage
public byte[] getMessage()Returns final message consisting all messages appended till now.- Returns:
- composed message
-