Class OutputStream
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class OutputStream : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
OutputStream
- Implements
- Derived
- Inherited Members
Constructors
OutputStream(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 OutputStream(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
OutputStream(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected OutputStream(CreationData data)
Parameters
dataCreationData
OutputStream(OutputStreamHandle)
protected OutputStream(OutputStreamHandle handle)
Parameters
handleOutputStreamHandle
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.
Flush(Cancellable?)
public bool Flush(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
FlushFinish(AsyncResult)
public bool FlushFinish(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
IsClosing()
[Version("2.24")]
public bool IsClosing()
Returns
NewFromPointer(nint, bool)
Creates a new managed OutputStream instance for a given pointer.
public static OutputStream NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new OutputStream and sets the properties specified by the construct arguments.
public static OutputStream NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetPending()
public bool SetPending()
Returns
Exceptions
- GException
Throws a GException in case of an error.
Splice(InputStream, OutputStreamSpliceFlags, Cancellable?)
public nint Splice(InputStream source, OutputStreamSpliceFlags flags, Cancellable? cancellable)
Parameters
sourceInputStreamflagsOutputStreamSpliceFlagscancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
SpliceFinish(AsyncResult)
public nint SpliceFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
Vprintf(out nuint, Cancellable?, Error, string, nint)
[Version("2.40")]
public bool Vprintf(out nuint bytesWritten, Cancellable? cancellable, Error error, string format, nint args)
Parameters
bytesWrittennuintcancellableCancellableerrorErrorformatstringargsnint
Returns
Write(Span<byte>, Cancellable?)
public nint Write(Span<byte> buffer, Cancellable? cancellable)
Parameters
bufferSpan<byte>cancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
WriteAll(Span<byte>, out nuint, Cancellable?)
public bool WriteAll(Span<byte> buffer, out nuint bytesWritten, Cancellable? cancellable)
Parameters
bufferSpan<byte>bytesWrittennuintcancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
WriteAllFinish(AsyncResult, out nuint)
[Version("2.44")]
public bool WriteAllFinish(AsyncResult result, out nuint bytesWritten)
Parameters
resultAsyncResultbytesWrittennuint
Returns
Exceptions
- GException
Throws a GException in case of an error.
WriteBytes(Bytes, Cancellable?)
public nint WriteBytes(Bytes bytes, Cancellable? cancellable)
Parameters
bytesBytescancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
WriteBytesFinish(AsyncResult)
public nint WriteBytesFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
WriteFinish(AsyncResult)
public nint WriteFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
Writev(OutputVector[], out nuint, Cancellable?)
[Version("2.60")]
public bool Writev(OutputVector[] vectors, out nuint bytesWritten, Cancellable? cancellable)
Parameters
vectorsOutputVector[]bytesWrittennuintcancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
WritevAll(OutputVector[], out nuint, Cancellable?)
[Version("2.60")]
public bool WritevAll(OutputVector[] vectors, out nuint bytesWritten, Cancellable? cancellable)
Parameters
vectorsOutputVector[]bytesWrittennuintcancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
WritevAllFinish(AsyncResult, out nuint)
[Version("2.60")]
public bool WritevAllFinish(AsyncResult result, out nuint bytesWritten)
Parameters
resultAsyncResultbytesWrittennuint
Returns
Exceptions
- GException
Throws a GException in case of an error.
WritevFinish(AsyncResult, out nuint)
[Version("2.60")]
public bool WritevFinish(AsyncResult result, out nuint bytesWritten)
Parameters
resultAsyncResultbytesWrittennuint
Returns
Exceptions
- GException
Throws a GException in case of an error.