[ CCode ( has_construct_function = false ) ]
[ Version ( since = "3.14" ) ]
public SourceFileLoader (SourceBuffer buffer, SourceFile file)
Creates a new `GtkSourceFileLoader` object.
The contents is read from the [class@File]'s location.
If not already done, call [method@File.set_location] before calling this constructor. The previous location is anyway not needed, because
as soon as the file loading begins, the buffer is emptied.
For path-based [iface@Gio.File] instances, the regular-file safety check is subject to time-of-check/time-of-use races if the path is replaced while the load operation is running.
| buffer |
the SourceBuffer to load the contents into. |
| file |
the SourceFile. |
|
a new SourceFileLoader object. |