Table of Contents

Class IOStream

Namespace
Gio
Assembly
Gio-2.0.dll
public class IOStream : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
IOStream
Implements
Derived
Inherited Members

Constructors

IOStream(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public IOStream(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

IOStream(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected IOStream(CreationData data)

Parameters

data CreationData

IOStream(IOStreamHandle)

protected IOStream(IOStreamHandle handle)

Parameters

handle IOStreamHandle

Fields

ClosedPropertyDefinition

public static readonly Property<bool, IOStream> ClosedPropertyDefinition

Field Value

Property<bool, IOStream>

InputStreamPropertyDefinition

public static readonly Property<InputStream?, IOStream> InputStreamPropertyDefinition

Field Value

Property<InputStream, IOStream>

OutputStreamPropertyDefinition

public static readonly Property<OutputStream?, IOStream> OutputStreamPropertyDefinition

Field Value

Property<OutputStream, IOStream>

Properties

Closed

public bool Closed { get; }

Property Value

bool

InputStream

public InputStream? InputStream { get; }

Property Value

InputStream

OutputStream

public OutputStream? OutputStream { get; }

Property Value

OutputStream

Methods

ClearPending()

[Version("2.22")]
public void ClearPending()

Close(Cancellable?)

[Version("2.22")]
public bool Close(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

CloseFinish(AsyncResult)

[Version("2.22")]
public bool CloseFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetInputStream()

[Version("2.22")]
public InputStream GetInputStream()

Returns

InputStream

GetOutputStream()

[Version("2.22")]
public OutputStream GetOutputStream()

Returns

OutputStream

HasPending()

[Version("2.22")]
public bool HasPending()

Returns

bool

IsClosed()

[Version("2.22")]
public bool IsClosed()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed IOStream instance for a given pointer.

public static IOStream NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

IOStream

NewWithProperties(ConstructArgument[])

Creates a new IOStream and sets the properties specified by the construct arguments.

public static IOStream NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

IOStream

SetPending()

[Version("2.22")]
public bool SetPending()

Returns

bool

SpliceFinish(AsyncResult)

[Version("2.28")]
public static bool SpliceFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool