public static RcPlusBindData fromByteArray(byte[] data, int offset) {
if (data.length < (offset + 7)) {
LOGGER.warn("The size of the provided data does not meet the expected length.");
throw new IllegalArgumentException(
"The size of the provided data does not meet the expected length (=7). Provided length: " + data.length);
}
DecoderUniqueIdData uniqueIdData = DecoderUniqueIdData.fromByteArray(data, offset);
AddressData address = AddressData.fromByteArray(data, offset + 5);
RcPlusBindData answerData = new RcPlusBindData(uniqueIdData, address);
LOGGER.trace("Return RcPlusBindData: {}", answerData);
return answerData;
}