Blob
Object Hierarchy:
Description:
[ CCode ( cname = "hb_blob_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "hb_gobject_blob_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "blob_t" ) ]
public class Blob
Data type for blobs.
A blob wraps a chunk of binary data and facilitates its lifecycle management between a client program and HarfBuzz.
Content:
Static methods:
- public static Blob create_from_file (string file_name)
Creates a new blob containing the data from the specified binary font
file.
- public static Blob create_from_file_or_fail (string file_name)
Creates a new blob containing the data from the specified binary font
file.
- public static Blob get_empty ()
Returns the singleton empty blob.
Methods:
- public Blob copy_writable_or_fail ()
Makes a writable copy of blob.
- public Blob create_sub_blob (uint offset, uint length)
Returns a blob that represents a range of bytes in parent
.
- public unowned char[]? get_data ()
Fetches the data from a blob.
- public unowned char[] get_data_writable ()
Tries to make blob data writable (possibly copying it) and return
pointer to data.
- public uint get_length ()
Fetches the length of a blob's data.
- public Bool is_immutable ()
Tests whether a blob is immutable.
- public void make_immutable ()
Makes a blob immutable.