Table of Contents

Class MappedFile

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class MappedFile : BoxedRecord, IEquatable<MappedFile>
Inheritance
MappedFile
Implements
Inherited Members

Constructors

MappedFile(MappedFileOwnedHandle)

public MappedFile(MappedFileOwnedHandle handle)

Parameters

handle MappedFileOwnedHandle

Properties

Handle

public MappedFileOwnedHandle Handle { get; }

Property Value

MappedFileOwnedHandle

Methods

Equals(MappedFile?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(MappedFile? other)

Parameters

other MappedFile

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("2.8")]
public void Free()

GetBytes()

[Version("2.34")]
public Bytes GetBytes()

Returns

Bytes

GetContents()

[Version("2.8")]
public string GetContents()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetLength()

[Version("2.8")]
public nuint GetLength()

Returns

nuint

New(string, bool)

[Version("2.8")]
public static MappedFile New(string filename, bool writable)

Parameters

filename string
writable bool

Returns

MappedFile

NewFromFd(int, bool)

[Version("2.32")]
public static MappedFile NewFromFd(int fd, bool writable)

Parameters

fd int
writable bool

Returns

MappedFile

Ref()

[Version("2.22")]
public MappedFile Ref()

Returns

MappedFile

Unref()

public void Unref()