Module epgsql_codec_net

Codec for inet, cidr

Behaviours: epgsql_codec.

Description

Codec for inet, cidr

TIP: use inet:ntoa/1 and inet:parse_address/1 to convert between ip() and string().

Data Types

data()

data() = ip() | ip_mask() | macaddr() | macaddr8()

ip()

ip() = inet:ip_address()

ip_mask()

ip_mask() = {ip(), mask()}

macaddr()

macaddr() = {byte(), byte(), byte(), byte(), byte(), byte()}

macaddr8()

macaddr8() = {byte(), byte(), byte(), byte(), byte(), byte(), byte(), byte()}

mask()

mask() = 0..32

Function Index

decode/3
decode_text/3
encode/3
init/2
names/0

Function Details

decode/3

decode(Bin, X2, X3) -> any()

decode_text/3

decode_text(V, X2, X3) -> any()

encode/3

encode(IpMask, X2, X3) -> any()

init/2

init(X1, X2) -> any()

names/0

names() -> any()


Generated by EDoc