Class (GI Struct)

GLib-2.0GLibMappedFile

The GLib.MappedFile represents a file mapping created with g_mapped_file_new(). It has only private members and should not be accessed directly.

Index

Constructors

Properties

Methods

  • Returns the contents of a GLib.MappedFile.

    Note that the contents may not be zero-terminated, even if the GLib.MappedFile is backed by a text file.

    If the file is empty then null is returned.

    Returns string

    the contents of file, or null.

  • Decrements the reference count of file by one. If the reference count drops to 0, unmaps the buffer of file and frees it.

    It is safe to call this function from any thread.

    Since 2.22

    Returns void