Table of Contents

Class MappedFile

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class MappedFile
Inheritance
MappedFile
Inherited Members

Methods

Free(MappedFileHandle)

Calls native method g_mapped_file_free. Version: 2.8

[Version("2.8")]
public static extern void Free(MappedFileHandle file)

Parameters

file MappedFileHandle

Transfer ownership: None Nullable: False

GetBytes(MappedFileHandle)

Calls native method g_mapped_file_get_bytes. Version: 2.34

[Version("2.34")]
public static extern BytesOwnedHandle GetBytes(MappedFileHandle file)

Parameters

file MappedFileHandle

Transfer ownership: None Nullable: False

Returns

BytesOwnedHandle

Transfer ownership: Full Nullable: False

GetContents(MappedFileHandle)

Calls native method g_mapped_file_get_contents. Version: 2.8

[Version("2.8")]
public static extern NonNullableUtf8StringOwnedHandle GetContents(MappedFileHandle file)

Parameters

file MappedFileHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

GetGType()

Calls native function g_mapped_file_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetLength(MappedFileHandle)

Calls native method g_mapped_file_get_length. Version: 2.8

[Version("2.8")]
public static extern nuint GetLength(MappedFileHandle file)

Parameters

file MappedFileHandle

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

New(NonNullablePlatformStringHandle, bool, out ErrorOwnedHandle)

Calls native constructor g_mapped_file_new. Version: 2.8

[Version("2.8")]
public static extern MappedFileOwnedHandle New(NonNullablePlatformStringHandle filename, bool writable, out ErrorOwnedHandle error)

Parameters

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

writable bool

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

MappedFileOwnedHandle

Transfer ownership: Full Nullable: False

NewFromFd(int, bool, out ErrorOwnedHandle)

Calls native constructor g_mapped_file_new_from_fd. Version: 2.32

[Version("2.32")]
public static extern MappedFileOwnedHandle NewFromFd(int fd, bool writable, out ErrorOwnedHandle error)

Parameters

fd int

Transfer ownership: None Nullable: False

writable bool

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

MappedFileOwnedHandle

Transfer ownership: Full Nullable: False

Ref(MappedFileHandle)

Calls native method g_mapped_file_ref. Version: 2.22

[Version("2.22")]
public static extern MappedFileOwnedHandle Ref(MappedFileHandle file)

Parameters

file MappedFileHandle

Transfer ownership: None Nullable: False

Returns

MappedFileOwnedHandle

Transfer ownership: Full Nullable: False

Unref(MappedFileHandle)

Calls native method g_mapped_file_unref.

public static extern void Unref(MappedFileHandle file)

Parameters

file MappedFileHandle

Transfer ownership: None Nullable: False