Table of Contents

Class FileIOStream

Namespace
Gio
Assembly
Gio-2.0.dll
public class FileIOStream : IOStream, Seekable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
FileIOStream
Implements
Inherited Members

Constructors

FileIOStream(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 FileIOStream(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

FileIOStream(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileIOStream(CreationData data)

Parameters

data CreationData

FileIOStream(FileIOStreamHandle)

protected FileIOStream(FileIOStreamHandle handle)

Parameters

handle FileIOStreamHandle

Methods

CanSeek()

public bool CanSeek()

Returns

bool

CanTruncate()

public bool CanTruncate()

Returns

bool

GetEtag()

[Version("2.22")]
public string? GetEtag()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed FileIOStream instance for a given pointer.

public static FileIOStream NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FileIOStream

NewWithProperties(ConstructArgument[])

Creates a new FileIOStream and sets the properties specified by the construct arguments.

public static FileIOStream NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FileIOStream

QueryInfo(string, Cancellable?)

[Version("2.22")]
public FileInfo QueryInfo(string attributes, Cancellable? cancellable)

Parameters

attributes string
cancellable Cancellable

Returns

FileInfo

Exceptions

GException

Throws a GException in case of an error.

QueryInfoFinish(AsyncResult)

[Version("2.22")]
public FileInfo QueryInfoFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

FileInfo

Exceptions

GException

Throws a GException in case of an error.

Seek(long, SeekType, Cancellable?)

public bool Seek(long offset, SeekType type, Cancellable? cancellable)

Parameters

offset long
type SeekType
cancellable Cancellable

Returns

bool

Exceptions

GException

Throws a GException in case of an error.

Tell()

public long Tell()

Returns

long

Truncate(long, Cancellable?)

public bool Truncate(long offset, Cancellable? cancellable)

Parameters

offset long
cancellable Cancellable

Returns

bool

Exceptions

GException

Throws a GException in case of an error.