Module cqerl_datatypes

Function Index

decode_bytes/1
decode_data/2
decode_inet/1
decode_long_string/1
decode_map_to_proplist/1
decode_multimap_to_proplist/1
decode_short_bytes/1
decode_string/1
decode_string_list/1
encode_bytes/1Encode a binary (max length 2^32) into the wire format required by the protocol.
encode_data/2
encode_long_string/1Encode a long UTF8 binary or string (max length 2^32) into the wire format required by the protocol.
encode_proplist_to_map/1Encode a proplist into a string map ([string] -> [string]), in the wire format required by the protocol.
encode_proplist_to_multimap/1Encode a proplist into a string multimap ([string] -> { [string], [string], ... }), in the wire format required by the protocol.
encode_short_bytes/1Encode a binary (max length 2^16) into the wire format required by the protocol.
encode_string/1Encode a UTF8 binary or string (max length of 2^16) into the wire format required by the protocol.
encode_string_list/1Encode a string list into the wire format required by the protocol.

Function Details

decode_bytes/1

decode_bytes(Bin) -> any()

decode_data/2

decode_data(X1::{Type::datatype(), NullSize::integer(), Buffer::binary()}, Opts::[{atom(), any()} | atom()]) -> {Value::term(), Rest::binary()}

decode_inet/1

decode_inet(X1) -> any()

decode_long_string/1

decode_long_string(Bin) -> any()

decode_map_to_proplist/1

decode_map_to_proplist(X1) -> any()

decode_multimap_to_proplist/1

decode_multimap_to_proplist(X1) -> any()

decode_short_bytes/1

decode_short_bytes(Bin) -> any()

decode_string/1

decode_string(Bin) -> any()

decode_string_list/1

decode_string_list(X1) -> any()

encode_bytes/1

encode_bytes(String::binary()) -> {ok, bitstring()} | {error, badarg}

Encode a binary (max length 2^32) into the wire format required by the protocol

encode_data/2

encode_data(Val::{Type::datatype() | {datatype(), term()}, Value::term()}, Query::#cql_query{}) -> binary()

encode_long_string/1

encode_long_string(String::string() | binary()) -> {ok, bitstring()} | {error, badarg}

Encode a long UTF8 binary or string (max length 2^32) into the wire format required by the protocol

encode_proplist_to_map/1

encode_proplist_to_map(PropList::[{atom() | binary(), binary()}]) -> {ok, bitstring()} | {error, badarg}

Encode a proplist into a string map ([string] -> [string]), in the wire format required by the protocol.

encode_proplist_to_multimap/1

encode_proplist_to_multimap(PropList::[{atom() | binary(), [binary()]}]) -> {ok, bitstring()} | {error, badarg}

Encode a proplist into a string multimap ([string] -> { [string], [string], ... }), in the wire format required by the protocol.

encode_short_bytes/1

encode_short_bytes(String::binary()) -> {ok, bitstring()} | {error, badarg}

Encode a binary (max length 2^16) into the wire format required by the protocol

encode_string/1

encode_string(String::string() | binary()) -> {ok, bitstring()} | {error, badarg}

Encode a UTF8 binary or string (max length of 2^16) into the wire format required by the protocol

encode_string_list/1

encode_string_list(StringList::[binary() | string()]) -> {ok, bitstring()} | {error, badarg}

Encode a string list into the wire format required by the protocol.


Generated by EDoc