Gjsify LogoGjsify Logo

Interface FileLoader_ConstructProps

Hierarchy

Index

Properties

buffer?: Gtef.Buffer

The #GtefBuffer to load the content into. The #GtefFileLoader object has a weak reference to the buffer.

chunk_size?: number

The chunk size, in bytes. The content is loaded chunk by chunk. It permits to avoid allocating a too big contiguous memory area, as well as reporting progress information after each chunk read.

A small chunk size is better when loading a remote file with a slow connection. For local files, the chunk size can be larger.

file?: Gtef.File

The #GtefFile. The #GtefFileLoader object has a weak reference to the file.

location?: Gio.File

The #GFile to load. By default the location is taken from the #GtefFile at construction time.

max_size?: number

The maximum content size, in bytes. Keep in mind that all the content is loaded in memory, and when loaded into a #GtkTextBuffer it takes more memory than just the content size.

Set to -1 for unlimited size.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method