:right-sidebar: True MappedFile =================================================================== .. currentmodule:: gi.repository.GObject .. class:: MappedFile(**kwargs) :no-contents-entry: :Constructors: :: new(filename:str, writable:bool) -> GLib.MappedFile new_from_fd(fd:int, writable:bool) -> GLib.MappedFile Constructors ------------ .. rst-class:: interim-class .. class:: MappedFile :no-index: .. classmethod:: new(filename: str, writable: bool) -> ~gi.repository.GLib.MappedFile :param filename: :param writable: .. classmethod:: new_from_fd(fd: int, writable: bool) -> ~gi.repository.GLib.MappedFile :param fd: :param writable: Methods ------- .. rst-class:: interim-class .. class:: MappedFile :no-index: .. method:: free() -> None .. method:: get_bytes() -> ~gi.repository.GLib.Bytes .. method:: get_contents() -> str .. method:: get_length() -> int