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
Methods
Equals(MappedFile?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MappedFile? other)
Parameters
other
MappedFileAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
[Version("2.8")]
public void Free()
GetBytes()
[Version("2.34")]
public Bytes GetBytes()
Returns
GetContents()
[Version("2.8")]
public string GetContents()
Returns
GetGType()
public static Type GetGType()
Returns
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
New(string, bool)
[Version("2.8")]
public static MappedFile New(string filename, bool writable)
Parameters
Returns
NewFromFd(int, bool)
[Version("2.32")]
public static MappedFile NewFromFd(int fd, bool writable)
Parameters
Returns
Ref()
[Version("2.22")]
public MappedFile Ref()
Returns
Unref()
public void Unref()