/// <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)); } }
public static IStatChild Create(nng_stat stat) { return(new StatChild { NngStat = stat }); }
public static extern UInt64 nng_stat_timestamp(nng_stat statsp);
public static extern nng_stat nng_stat_child(nng_stat statsp);
public static extern nng_stat nng_stat_next(nng_stat statsp);
static extern unsafe char *nng_stat_string(nng_stat statsp);
public static extern UInt64 nng_stat_value(nng_stat statsp);
public static extern nng_unit_enum nng_stat_unit(nng_stat statsp);
public static extern nng_stat_type_enum nng_stat_type(nng_stat statsp);
static extern unsafe char *nng_stat_desc(nng_stat statsp);
static extern unsafe char *nng_stat_name(nng_stat statsp);
public static extern void nng_stats_free(nng_stat statsp);
public static extern Int32 nng_stats_get(out nng_stat statsp);