public int Continue(ref PROTOCOLDATA pProtocolData)
 {
     if (m_ContinueFunc == null)
     {
         var fp = GetFunctionPointer(4);
         m_ContinueFunc = (ContinueFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ContinueFunc));
     }
     return(m_ContinueFunc(m_ptr, ref pProtocolData));
 }
 public int Switch(ref PROTOCOLDATA pProtocolData)
 {
     if (m_SwitchFunc == null)
     {
         var fp = GetFunctionPointer(3);
         m_SwitchFunc = (SwitchFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SwitchFunc));
     }
     return(m_SwitchFunc(m_ptr, ref pProtocolData));
 }