예제 #1
0
 /// <summary>
 /// Makes managed copy of unmanaged string so nng_stats_free() (which frees the strings) can be called without issue.
 /// </summary>
 /// <param name="statsp"></param>
 /// <returns></returns>
 public static string nng_stat_string_string(nng_stat statsp)
 {
     unsafe
     {
         var ptr = new IntPtr(nng_stat_string(statsp));
         return(Marshal.PtrToStringAnsi(ptr));
     }
 }
예제 #2
0
 public static IStatChild Create(nng_stat stat)
 {
     return(new StatChild {
         NngStat = stat
     });
 }
예제 #3
0
 public static extern UInt64 nng_stat_timestamp(nng_stat statsp);
예제 #4
0
 public static extern nng_stat nng_stat_child(nng_stat statsp);
예제 #5
0
 public static extern nng_stat nng_stat_next(nng_stat statsp);
예제 #6
0
 static extern unsafe char *nng_stat_string(nng_stat statsp);
예제 #7
0
 public static extern UInt64 nng_stat_value(nng_stat statsp);
예제 #8
0
 public static extern nng_unit_enum nng_stat_unit(nng_stat statsp);
예제 #9
0
 public static extern nng_stat_type_enum nng_stat_type(nng_stat statsp);
예제 #10
0
 static extern unsafe char *nng_stat_desc(nng_stat statsp);
예제 #11
0
 static extern unsafe char *nng_stat_name(nng_stat statsp);
예제 #12
0
 public static extern void nng_stats_free(nng_stat statsp);
예제 #13
0
 public static extern Int32 nng_stats_get(out nng_stat statsp);