Function ndpi_serialize_string_uint32_format

Function Documentation

int ndpi_serialize_string_uint32_format(ndpi_serializer *serializer, const char *key, u_int32_t value, const char *format)

Serialize a string key and a float value

Parameters:
  • serializer – The serializer handle

  • key – The field name or ID

  • value – The field value

  • format – The float format

Returns:

0 on success, a negative number otherwise