Hello,
I'm following some c code as an example that uses MesageBody.get_chunk
in a while loop.
I am curious if/why this would be better than using
Soup.MessageBody.flatten.
the c code:
while ((buffer = soup_message_body_get_chunk
(http_message->response_body, offset))) {
if (!str)
str = g_string_new ("");
g_string_append_len (str, buffer->data, buffer->length);
offset += buffer->length;
soup_buffer_free (buffer);
}
the proposed vala:
string str = (string) message.response_body.flatten ().data;
--
Regards,
Brian Winfrey
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list