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
constructArgumentsConstructArgument[]
IOStream(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected IOStream(CreationData data)
Parameters
dataCreationData
IOStream(IOStreamHandle)
protected IOStream(IOStreamHandle handle)
Parameters
handleIOStreamHandle
Fields
ClosedPropertyDefinition
public static readonly Property<bool, IOStream> ClosedPropertyDefinition
Field Value
InputStreamPropertyDefinition
public static readonly Property<InputStream?, IOStream> InputStreamPropertyDefinition
Field Value
OutputStreamPropertyDefinition
public static readonly Property<OutputStream?, IOStream> OutputStreamPropertyDefinition
Field Value
Properties
Closed
public bool Closed { get; }
Property Value
InputStream
public InputStream? InputStream { get; }
Property Value
OutputStream
public OutputStream? OutputStream { get; }
Property Value
Methods
ClearPending()
[Version("2.22")]
public void ClearPending()
Close(Cancellable?)
[Version("2.22")]
public bool Close(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
CloseFinish(AsyncResult)
[Version("2.22")]
public bool CloseFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetGType()
public static Type GetGType()
Returns
GetInputStream()
[Version("2.22")]
public InputStream GetInputStream()
Returns
GetOutputStream()
[Version("2.22")]
public OutputStream GetOutputStream()
Returns
HasPending()
[Version("2.22")]
public bool HasPending()
Returns
IsClosed()
[Version("2.22")]
public bool IsClosed()
Returns
NewFromPointer(nint, bool)
Creates a new managed IOStream instance for a given pointer.
public static IOStream NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new IOStream and sets the properties specified by the construct arguments.
public static IOStream NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetPending()
[Version("2.22")]
public bool SetPending()
Returns
SpliceFinish(AsyncResult)
[Version("2.28")]
public static bool SpliceFinish(AsyncResult result)
Parameters
resultAsyncResult