ipStrToIP16

Converts an IP address string to a 16-byte representation.

@trusted
ubyte[IPCRYPT_KEYBYTES]
ipStrToIP16
(
ref string ipStr
)

Parameters

ipStr string

The IP address string (IPv4 or IPv6).

Return Value

Type: ubyte[IPCRYPT_KEYBYTES]

The 16-byte IP address.

Throws

Exception if the conversion fails.

Meta