ngtcp2_decode_transport_params ============================== Synopsis -------- *#include * .. function:: int ngtcp2_decode_transport_params( ngtcp2_transport_params *params, uint32_t flags, ngtcp2_transport_params_type exttype, const uint8_t *data, size_t datalen) `ngtcp2_decode_transport_params` decodes transport parameters in *data* of length *datalen*, and stores the result in the object pointed by *params*. *flags* is bitwise OR of zero or more of :macro:`NGTCP2_TRANSPORT_PARAMS_DECODE_FLAG_* `. If :macro:`NGTCP2_TRANSPORT_PARAMS_DECODE_FLAG_IGNORE_MISSING_REQUIRED_FIELDS` is set, this function does not check the missing required fields, and :macro:`NGTCP2_ERR_REQUIRED_TRANSPORT_PARAM` will not be returned. If the optional parameters are missing, the default value is assigned. The following fields may point to somewhere inside the buffer pointed by *data* of length *datalen*: - :member:`ngtcp2_transport_params.version_info.available_versions ` This function returns 0 if it succeeds, or one of the following negative error codes: :macro:`NGTCP2_ERR_REQUIRED_TRANSPORT_PARAM` The required parameter is missing. :macro:`NGTCP2_ERR_MALFORMED_TRANSPORT_PARAM` The input is malformed.