Inconsistent introspection annotations for g_input_stream_read and g_socket_receive
The function g_input_stream_read
has a parameter buffer
that is filled in by the function and has the annotation (out caller-allocates)
. g_socket_receive
similarly has a parameter buffer
that is filled in by the function but this is implicitly an 'in' parameter. I think GLib should provide a consistent interface to this sort of function via introspection annotations.
I would propose a change but I'm not sure which way to go. I've noted here that the change to g_input_stream_read
that makes buffer
a caller-allocated 'out' parameter could be detrimental for efficiency when used with high-level languages.