Address4.toString

Writes this IPv4 address in dotted-decimal notation.

struct Address4
const
OR
toString
(
OR
)
()
if (
isOutputRange!(OR, const(char)[])
)

Parameters

OR

Type of the output range.

output OR

Output range.

Return Value

Type: OR

output.

Examples

import tanya.container.string : String;
import tanya.range : backInserter;

const dottedDecimal = "192.168.0.1";
String actual;
const address = address4(dottedDecimal);

address.get.toString(backInserter(actual));
assert(actual == dottedDecimal);

Meta