예제 #1
0
        /// <summary>
        /// Copy constructor (used for cloning)
        /// </summary>
        /// <param name="param"></param>
        public APDUParam(APDUParam param)
        {
            // Copy field
            if (param.data != null)
                param.data.CopyTo(data, 0);
            cla = param.cla;
            channel = param.channel;
            p1 = param.p1;
            p2 = param.p2;
            le = param.le;

            // Copy flags field
            useChannel = param.useChannel;
            useCla = param.useCla;
            useData = param.useData;
            m_fLe = param.m_fLe;
            useP1 = param.useP1;
            useP2 = param.useP2;
        }
예제 #2
0
        /// <summary>
        /// Copy constructor (used for cloning)
        /// </summary>
        /// <param name="param"></param>
        public APDUParam(APDUParam param)
        {
            // Copy field
            if (param.data != null)
            {
                param.data.CopyTo(data, 0);
            }
            cla     = param.cla;
            channel = param.channel;
            p1      = param.p1;
            p2      = param.p2;
            le      = param.le;

            // Copy flags field
            useChannel = param.useChannel;
            useCla     = param.useCla;
            useData    = param.useData;
            m_fLe      = param.m_fLe;
            useP1      = param.useP1;
            useP2      = param.useP2;
        }