Class InputStream
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class InputStream : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
InputStream
- Implements
- Derived
- Inherited Members
Constructors
InputStream(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 InputStream(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
InputStream(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected InputStream(CreationData data)
Parameters
dataCreationData
InputStream(InputStreamHandle)
protected InputStream(InputStreamHandle handle)
Parameters
handleInputStreamHandle
Methods
ClearPending()
public void ClearPending()
Close(Cancellable?)
public bool Close(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
CloseFinish(AsyncResult)
public bool CloseFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetGType()
public static Type GetGType()
Returns
HasPending()
public bool HasPending()
Returns
IsClosed()
public bool IsClosed()
Returns
NewFromPointer(nint, bool)
Creates a new managed InputStream instance for a given pointer.
public static InputStream NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new InputStream and sets the properties specified by the construct arguments.
public static InputStream NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Read(Span<byte>, Cancellable?)
public nint Read(Span<byte> buffer, Cancellable? cancellable)
Parameters
bufferSpan<byte>cancellableCancellable
Returns
ReadAll(Span<byte>, out nuint, Cancellable?)
public bool ReadAll(Span<byte> buffer, out nuint bytesRead, Cancellable? cancellable)
Parameters
bufferSpan<byte>bytesReadnuintcancellableCancellable
Returns
ReadAllFinish(AsyncResult, out nuint)
[Version("2.44")]
public bool ReadAllFinish(AsyncResult result, out nuint bytesRead)
Parameters
resultAsyncResultbytesReadnuint
Returns
ReadBytes(nuint, Cancellable?)
[Version("2.34")]
public Bytes ReadBytes(nuint count, Cancellable? cancellable)
Parameters
countnuintcancellableCancellable
Returns
ReadBytesFinish(AsyncResult)
[Version("2.34")]
public Bytes ReadBytesFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ReadFinish(AsyncResult)
public nint ReadFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SetPending()
public bool SetPending()
Returns
Skip(nuint, Cancellable?)
public nint Skip(nuint count, Cancellable? cancellable)
Parameters
countnuintcancellableCancellable
Returns
SkipFinish(AsyncResult)
public nint SkipFinish(AsyncResult result)
Parameters
resultAsyncResult