Example #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));
     }
 }
Example #2
0
 public static IStatChild Create(nng_stat stat)
 {
     return(new StatChild {
         NngStat = stat
     });
 }
Example #3
0
 public static extern UInt64 nng_stat_timestamp(nng_stat statsp);
Example #4
0
 public static extern nng_stat nng_stat_child(nng_stat statsp);
Example #5
0
 public static extern nng_stat nng_stat_next(nng_stat statsp);
Example #6
0
 static extern unsafe char *nng_stat_string(nng_stat statsp);
Example #7
0
 public static extern UInt64 nng_stat_value(nng_stat statsp);
Example #8
0
 public static extern nng_unit_enum nng_stat_unit(nng_stat statsp);
Example #9
0
 public static extern nng_stat_type_enum nng_stat_type(nng_stat statsp);
Example #10
0
 static extern unsafe char *nng_stat_desc(nng_stat statsp);
Example #11
0
 static extern unsafe char *nng_stat_name(nng_stat statsp);
Example #12
0
 public static extern void nng_stats_free(nng_stat statsp);
Example #13
0
 public static extern Int32 nng_stats_get(out nng_stat statsp);