Re: Re: Reading from an InputStream
- From: "Alan Knowles" <alan akbkhome com>
- To: "Michael Fletcher" <javascript-list-bounces gnome org>
- Cc: javascript-list gnome org
- Subject: Re: Re: Reading from an InputStream
- Date: Fri, 03 Feb 2012 11:57:30 +0800
try something like this.
(inout) (element-type guint8) (array length=count) (transfer none):
you need to get the allocation and ownership correct
Regards
Alan
--- On 03/Feb/2012, Michael Fletcher wrote:
> I had a bit of good luck and bad luck.
>
> I managed to rebuild gobject-introspection with the following annotation
> on g_input_stream_read_async buffer.
>
> Is this the correct way to map a void*?
>
> (element-type guint8) (array length=count)
>
> Anyways I was able to pass an array in. I stepped into
> g_input_stream_read_async and it appears as though the buffer was passed
> into that function correctly.
>
> That is where the good luck ended.
>
> I have done *something* wrong because now I am getting a variety of
> errors and the variety leads me to believe some memory was overwritten.
>
> It usually segfaults in malloc in whatever is called after read_async
> returns.
> _______________________________________________
> javascript-list mailing list
> javascript-list gnome org
> http://mail.gnome.org/mailman/listinfo/javascript-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]