Пример #1
0
 public static PaHostErrorInfo GetLastHostErrorInfo()
 {
     using (var cppptr = new CppInstancePtr(PortAudioInterop.Pa_GetLastHostErrorInfo()))
         return(Factory.Create <PaHostErrorInfo> (cppptr));
 }
Пример #2
0
 public static T Create <T> (CppInstancePtr handle)
 {
     return((T)Marshal.PtrToStructure(handle.Native, typeof(T)));
 }