Copyright (C) 2000-2012 |
Whole document tree
BonoboStreamMemSynopsis
DescriptionThe BonoboStreamMem is an implementation of the IDL:Bonobo/Stream:1.0 interface. This implementation allows an in-memory buffer to be exposed as a IDL:Bonobo/Stream:1.0 to clients. Here is a sample way of exposing a C string as an IDL:Bonobo/Stream:1.0: This example will make the string argument be exposed as a CORBA stream.DetailsBonoboStreamMemClass
bonobo_stream_mem_construct ()
bonobo_stream_mem_create ()
Creates a new BonoboStreamMem object. If buffer is non-NULL, size bytes are copied from it into a new buffer. If buffer is NULL, a new buffer of size size is created and filled with zero bytes. When data is read out of or (if read_only is FALSE) written into the returned BonoboStream object, the read() and write() operations operate on the new buffer. If resizable is TRUE, writing or seeking past the end of the buffer will cause the buffer to be expanded (with the new space zero-filled for a seek).
bonobo_stream_mem_get_buffer ()
Returns the buffer associated with a BonoboStreamMem. If the stream is set to automatically resize itself, this buffer is only guaranteed to stay valid until the next write operation on the stream. See Also
|