gMemoryOutputStreamNew: gMemoryOutputStreamNew

Description Usage Arguments Details Value Author(s)

View source: R/gioFuncs.R

Description

Creates a new GMemoryOutputStream.

Usage

1

Arguments

len

the size of data

Details

If data is non-NULL, the stream will use that for its internal storage. If realloc.fn is non-NULL, it will be used for resizing the internal storage when necessary. To construct a fixed-size output stream, pass NULL as realloc.fn.

1
2
3
4
## a stream that can grow
stream <- gMemoryOutputStream(0)

## fixed-size streams are not supported

Value

A list containing the following elements:

retval

[GOutputStream] A newly created GMemoryOutputStream object.

data

pointer to a chunk of memory to use, or NULL

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.