Basics
Guides
API Reference
Basics
Guides
API Reference
[126:14] static extends: object
Alternate constructors for MemoryInputStream. Usage:
MemoryInputStreamCtors.<name>(...). The primary constructor lives
directly on MemoryInputStream.
newFromBytes (object bytes)
Creates a new #GMemoryInputStream with data from the given @bytes.
bytes is a #GBytes.A new MemoryInputStream.[14:7] extends: object
GMemoryInputStream is a class for using arbitrary memory chunks as input
for GIO streaming input operations. As of GLib 2.34, GMemoryInputStream
implements [iface@Gio.PollableInputStream].
MemoryInputStream ()
Creates a new empty #GMemoryInputStream.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asInputStream ()
Wraps this handle as
InputStream.
A InputStream object.asPollableInputStream ()
Wraps this handle as
PollableInputStream.
A PollableInputStream object.asSeekable ()
Wraps this handle as
Seekable.
A Seekable object.add_bytes (object bytes)
Appends @bytes to data that can be read from the input stream.
bytes is input data.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.