Function ndpi_serialize_string_binary

Function Documentation

int ndpi_serialize_string_binary(ndpi_serializer *serializer, const char *key, const char *_value, u_int16_t vlen)

Serialize a string key and an unterminated 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
  • vlen: The value length