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); }
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); }