Example #1
0
 public void write(string path, SWIGTYPE_p_ngram_file_type_t ftype)
 {
     sphinxbasePINVOKE.NGramModel_write(swigCPtr, path, SWIGTYPE_p_ngram_file_type_t.getCPtr(ftype));
     if (sphinxbasePINVOKE.SWIGPendingException.Pending)
     {
         throw sphinxbasePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ngram_file_type_t obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #3
0
        public SWIGTYPE_p_ngram_file_type_t str_to_type(string str)
        {
            SWIGTYPE_p_ngram_file_type_t ret = new SWIGTYPE_p_ngram_file_type_t(sphinxbasePINVOKE.NGramModel_str_to_type(swigCPtr, str), true);

            return(ret);
        }