MappedFile

class MappedFile(**kwargs)
Constructors:

new(filename:str, writable:bool) -> GLib.MappedFile
new_from_fd(fd:int, writable:bool) -> GLib.MappedFile

Constructors

class MappedFile
classmethod new(filename: str, writable: bool) MappedFile
Parameters:
  • filename

  • writable

classmethod new_from_fd(fd: int, writable: bool) MappedFile
Parameters:
  • fd

  • writable

Methods

class MappedFile
free() None
get_bytes() Bytes
get_contents() str
get_length() int