public StackPacket DecodeSlowPathUpdatePDU(
byte[] data,
byte[] decryptedUserData,
SecurityHeaderType type)
{
SlowPathOutputPdu pdu = new SlowPathOutputPdu();
// data index
int dataIndex = 0;
// SlowPathOutputPDU: commonHeader
pdu.commonHeader = ParseMcsCommonHeader(data, ref dataIndex, type);
// user data index
int userDataIndex = 0;
// SlowPathOutputPDU: slowPathUpdates
pdu.slowPathUpdates = ParseSlowPathUpdates(decryptedUserData, ref userDataIndex);
// Check if data length exceeded expectation
VerifyDataLength(decryptedUserData.Length, userDataIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_EXCEEDED);
return pdu;
}