GIO: Anyone have any suggestions on how to implement GMemoryOutputStream?

How should I implement GMemoryOutputStream?

http://library.gnome.org/devel/gio/stable/GMemoryOutputStream.html

I want to be able to realloc it and such and it would also be sweet if
getting the data doesn’t alloc a new Ruby string. But how do I do all
this safely? I’m probably only confusing myself, but I’d appreciate
any guidance available.

Thanks.

Hi,

In [email protected]
“[ruby-gnome2-devel-en] GIO: Anyone have any suggestions on how to
implement GMemoryOutputStream?” on Tue, 24 Mar 2009 15:11:49 +0100,
Nikolai W. [email protected] wrote:

How should I implement GMemoryOutputStream?

http://library.gnome.org/devel/gio/stable/GMemoryOutputStream.html

I want to be able to realloc it and such and it would also be sweet if
getting the data doesn’t alloc a new Ruby string. But how do I do all
this safely? I’m probably only confusing myself, but I’d appreciate
any guidance available.

I think that we doesn’t need to implement
GMemoery{Input,Output}Stream. We should implement
RBGMemory{Input,Output}Stream and bind them instead.

Thanks,

kou

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs