public StackPacket DecodeMcsAttachUserRequestPDU(byte[] data)
{
// initialize
int currentIndex = 0;
Client_MCS_Attach_User_Request pdu = new Client_MCS_Attach_User_Request();
// McsAttachUserConfirmPDU: TpktHeader
pdu.tpktHeader = ParseTpktHeader(data, ref currentIndex);
// McsAttachUserConfirmPDU: x224Data
pdu.x224Data = ParseX224Data(data, ref currentIndex);
AttachUserRequest attachUserRequest = (AttachUserRequest)ParseMcsDomainPdu(data, ref currentIndex).GetData();
// Check if data length exceeded expectation
VerifyDataLength(data.Length, currentIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_EXCEEDED);
return pdu;
}