mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +02:00
file: add g_file_load_bytes()
This adds g_file_load_bytes() to make it more convenient to load the contents of a GFile as GBytes. It includes a special casing for gresources to increase the chances that the GBytes directly references the embedded data instead of copying to the heap. https://bugzilla.gnome.org/show_bug.cgi?id=790272
This commit is contained in:
@@ -184,6 +184,9 @@ g_file_mount_enclosing_volume_finish
|
||||
g_file_monitor_directory
|
||||
g_file_monitor_file
|
||||
g_file_monitor
|
||||
g_file_load_bytes
|
||||
g_file_load_bytes_async
|
||||
g_file_load_bytes_finish
|
||||
g_file_load_contents
|
||||
g_file_load_contents_async
|
||||
g_file_load_contents_finish
|
||||
|
Reference in New Issue
Block a user