Class FileOutputStream
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class FileOutputStream : OutputStream, Seekable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
FileOutputStream
- Implements
- Inherited Members
Constructors
FileOutputStream(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 FileOutputStream(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FileOutputStream(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileOutputStream(CreationData data)
Parameters
dataCreationData
FileOutputStream(FileOutputStreamHandle)
protected FileOutputStream(FileOutputStreamHandle handle)
Parameters
handleFileOutputStreamHandle
Methods
CanSeek()
public bool CanSeek()
Returns
CanTruncate()
public bool CanTruncate()
Returns
GetEtag()
public string? GetEtag()
Returns
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed FileOutputStream instance for a given pointer.
public static FileOutputStream NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FileOutputStream and sets the properties specified by the construct arguments.
public static FileOutputStream NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
QueryInfo(string, Cancellable?)
public FileInfo QueryInfo(string attributes, Cancellable? cancellable)
Parameters
attributesstringcancellableCancellable
Returns
QueryInfoFinish(AsyncResult)
public FileInfo QueryInfoFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Seek(long, SeekType, Cancellable?)
public bool Seek(long offset, SeekType type, Cancellable? cancellable)
Parameters
offsetlongtypeSeekTypecancellableCancellable
Returns
Tell()
public long Tell()
Returns
Truncate(long, Cancellable?)
public bool Truncate(long offset, Cancellable? cancellable)
Parameters
offsetlongcancellableCancellable