Resource


Object Hierarchy:

Object hierarchy for Resource

Description:

public class Resource : Object

Resource loading helper methods.

This helper currently reads binary resources from a filesystem path and returns the whole content as a byte array.

Example:

    var bytes = Resource.readResource ("./assets/logo.bin");
if (bytes.isOk ()) {
print ("loaded=%zu\n", bytes.unwrap ().get_size ());
}


Namespace: Vala.Io
Package: Valacore

Content:

Static methods:

Creation methods:

Inherited Members:

All known members inherited from class GLib.Object