Module bip_util::convert [] [src]

Converting between data.

Functions

bytes_be_to_ipv4

Convert an array of 4 bytes big endian to an ipv4 address.

bytes_be_to_ipv6

Convert an array of 16 bytes big endian to an ipv6 address.

bytes_be_to_port

Convert an array of 2 bytes big endian to a port.

bytes_be_to_sock_v4

Convert an array of 6 bytes big endian to a v4 socket address.

bytes_be_to_sock_v6

Convert an array of 18 bytes big endian to a v6 socket address.

eight_bytes_to_array

Convert an 8 byte value to an array of 8 bytes.

four_bytes_to_array

Convert a 4 byte value to an array of 4 bytes.

ipv4_to_bytes_be

Convert an ipv4 address to an array of 4 bytes big endian.

ipv6_to_bytes_be

Convert an ipv6 address to an array of 16 bytes big endian.

port_to_bytes_be
sock_v4_to_bytes_be

Convert a v4 socket address to an array of 6 bytes big endian.

sock_v6_to_bytes_be

Convert a v6 socket address to an array of 18 bytes big endian.