/* Appends @data to data that can be read from the input stream  */
void g_memory_input_stream_add_data(GMemoryInputStream *stream, const void *data, gssize len, GDestroyNotify destroy)
/* Appends @data to data that can be read from the input stream  */
void g_memory_input_stream_add_data(GMemoryInputStream *stream, const void *data, gssize len, GDestroyNotify destroy)
{
  GBytes *bytes;
  if (len == -1)
    len = strlen (data);
  bytes = g_bytes_new_with_free_func (data, len, destroy, (void*)data);
  g_memory_input_stream_add_bytes (stream, bytes);
  g_bytes_unref (bytes);
}