Function Address6.this

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

ref this (
  ubyte[16] address,
  uint scopeID = 0u
) pure nothrow @nogc @safe;

Parameters

NameDescription
address The address as an unsigned integer in host byte order.
scopeID Scope ID.

Example

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);