/// <summary> /// Retrieves the IPv6 <see cref="string"/> at the ip position in the ip list of the site at the given position. /// </summary> public string GetIPv6(uint position, uint ipPosition) { using (var result = new Utf8ByteArray((int)46)) { int code = i3d_ping_sites_getter_list_site_ipv6_ip(_ptr, position, ipPosition, result); I3dErrorValidator.Validate(code); result.ReadPtr(); return(result.ToString()); } }
/// <summary> /// Retrieves the hostname <see cref="string"/> value for the site at the given position. /// </summary> public string GetHostname(uint position) { using (var result = new Utf8ByteArray((int)64)) { int code = i3d_ping_sites_getter_list_site_hostname(_ptr, position, result); I3dErrorValidator.Validate(code); result.ReadPtr(); return(result.ToString()); } }
/// <summary> /// Retrieves the <see cref="string"/> value from the array. /// </summary> public string GetString(uint position) { int size = GetStringSize(position); using (var result8 = new Utf8ByteArray(size)) { int code = one_array_val_string(_ptr, position, result8, size); OneErrorValidator.Validate(code); result8.ReadPtr(); return(result8.ToString()); } }
/// <summary> /// Retrieves the IP <see cref="string"/> value from the ip list. /// </summary> public string GetIp(uint position) { uint size = GetStringSize(position); using (var result = new Utf8ByteArray((int)size)) { int code = i3d_ping_ip_list_ip(_ptr, position, result, size); I3dErrorValidator.Validate(code); result.ReadPtr(); return(result.ToString()); } }
/// <summary> /// Retrieves the <see cref="string"/> value from the object. /// </summary> public string GetString(string key) { int size = GetStringSize(key); using (var result8 = new Utf8ByteArray(size)) { int code; using (var key8 = new Utf8ByteArray(key)) { code = one_object_val_string(_ptr, key8, result8, size); } OneErrorValidator.Validate(code); result8.ReadPtr(); return(result8.ToString()); } }