>From what I remember the introspection API was supposed to be able to tag a >field as an array of bytes, however it needs documenting in the C code to >generate the correct introspection data.
>From there on, seed/GJS should really use ByteArray's to accept data. (This >needs implementing in seed, I'm not sure if it has been done in GJS) The quick work around is to use a standard array, and read Bytes rather than the whole buffer (not very effecient, but will work in the short term.) Regards Alan --- On 29/Jan/2012, Michael Fletcher wrote: > Hi > > I am attempting to read from an InputStream. I had thought I would be > able to use a ByteArray but this did not seem to work. > > > this.buf = new ByteArray.ByteArray(BUF_SIZE) > > is.read_async(this.buf, this.buf.length, 0, null, ptr(this, > this.read_ready), null) > > It fails with > > > Exception was: Error: Argument 'buffer' (type void) may not be null > > Presumably this is because gjs does not know how to map a void* pointer. > > > How would I go about mapping something to a void* pointer. I managed to > build and install glib and gobject-introspection. > _______________________________________________ > javascript-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/javascript-list _______________________________________________ javascript-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/javascript-list
