Table of Contents

Class MemoryInputStream

Namespace
Gio
Assembly
Gio-2.0.dll
public class MemoryInputStream : InputStream, IDisposable, PollableInputStream, Seekable, GTypeProvider, InstanceFactory
Inheritance
MemoryInputStream
Implements
Inherited Members

Constructors

MemoryInputStream(params ConstructArgument[])

public MemoryInputStream(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

MemoryInputStream(MemoryInputStreamHandle)

public MemoryInputStream(MemoryInputStreamHandle handle)

Parameters

handle MemoryInputStreamHandle

Methods

AddBytes(Bytes)

[Version("2.34")]
public void AddBytes(Bytes bytes)

Parameters

bytes Bytes

CanPoll()

[Version("2.28")]
public bool CanPoll()

Returns

bool

CanSeek()

public bool CanSeek()

Returns

bool

CanTruncate()

public bool CanTruncate()

Returns

bool

CreateSource(Cancellable?)

[Version("2.28")]
public Source CreateSource(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

Source

GetGType()

public static Type GetGType()

Returns

Type

IsReadable()

[Version("2.28")]
public bool IsReadable()

Returns

bool

New()

public static MemoryInputStream New()

Returns

MemoryInputStream

NewFromBytes(Bytes)

[Version("2.34")]
public static MemoryInputStream NewFromBytes(Bytes bytes)

Parameters

bytes Bytes

Returns

MemoryInputStream

ReadNonblocking(Span<byte>, Cancellable?)

public nint ReadNonblocking(Span<byte> buffer, Cancellable? cancellable)

Parameters

buffer Span<byte>
cancellable Cancellable

Returns

nint

Seek(long, SeekType, Cancellable?)

public bool Seek(long offset, SeekType type, Cancellable? cancellable)

Parameters

offset long
type SeekType
cancellable Cancellable

Returns

bool

Tell()

public long Tell()

Returns

long

Truncate(long, Cancellable?)

public bool Truncate(long offset, Cancellable? cancellable)

Parameters

offset long
cancellable Cancellable

Returns

bool