Esempio n. 1
0
        public int add_word(string word, SWIGTYPE_p_float32 weight)
        {
            int ret = sphinxbasePINVOKE.NGramModel_add_word(swigCPtr, word, SWIGTYPE_p_float32.getCPtr(weight));

            if (sphinxbasePINVOKE.SWIGPendingException.Pending)
            {
                throw sphinxbasePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_float32 obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }