Function ndpi_serialize_string_string_len

Function Documentation

int ndpi_serialize_string_string_len(ndpi_serializer *serializer, const char *key, const char *value, u_int16_t value_len)

Serialize a string key and a string value

Return
0 on success, a negative number otherwise
Parameters
  • serializer: The serializer handle
  • key: The field name or ID
  • value: The field value
  • value_len: The field value length