Address6.this

Constructs an $(D_PSYMBOL Address6) from an array containing raw bytes in network byte order and scope ID.

struct Address6
@nogc nothrow pure @safe
this
(
ubyte[16] address
,
uint scopeID = 0
)

Parameters

address ubyte[16]

The address as an unsigned integer in host byte order.

scopeID uint

Scope ID.

Examples

const ubyte[16] expected = [ 0, 1, 0, 2, 0, 3, 0, 4,
                             0, 5, 0, 6, 0, 7, 0, 8 ];
auto actual = Address6(expected, 1);
assert(actual.toBytes() == expected);
assert(actual.scopeID == 1);

Meta