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
Exceptions
- GException
Throws a GException in case of an error.
CloseFinish(AsyncResult)
public bool CloseFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
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
Exceptions
- GException
Throws a GException in case of an error.
ReadAll(Span<byte>, out nuint, Cancellable?)
public bool ReadAll(Span<byte> buffer, out nuint bytesRead, Cancellable? cancellable)
Parameters
bufferSpan<byte>bytesReadnuintcancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
ReadAllFinish(AsyncResult, out nuint)
[Version("2.44")]
public bool ReadAllFinish(AsyncResult result, out nuint bytesRead)
Parameters
resultAsyncResultbytesReadnuint
Returns
Exceptions
- GException
Throws a GException in case of an error.
ReadBytes(nuint, Cancellable?)
[Version("2.34")]
public Bytes ReadBytes(nuint count, Cancellable? cancellable)
Parameters
countnuintcancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
ReadBytesFinish(AsyncResult)
[Version("2.34")]
public Bytes ReadBytesFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
ReadFinish(AsyncResult)
public nint ReadFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
SetPending()
public bool SetPending()
Returns
Exceptions
- GException
Throws a GException in case of an error.
Skip(nuint, Cancellable?)
public nint Skip(nuint count, Cancellable? cancellable)
Parameters
countnuintcancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
SkipFinish(AsyncResult)
public nint SkipFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.