X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fhtml%2Fharfbuzz-hb-blob.html;h=822fb523e321a57d49d06a24fbd4bcb0447d8916;hb=8b9bac85deb2ace750acafa5e0da676f633aadeb;hp=88c5ee3b0ceb330e007974aedbd90b76128398e3;hpb=fe65a6a32ba3654c532639ba656bd66b041d7dc6;p=platform%2Fupstream%2Fharfbuzz.git diff --git a/docs/html/harfbuzz-hb-blob.html b/docs/html/harfbuzz-hb-blob.html index 88c5ee3..822fb52 100644 --- a/docs/html/harfbuzz-hb-blob.html +++ b/docs/html/harfbuzz-hb-blob.html @@ -3,12 +3,12 @@
destroy
Callback to call when data
-is not needed anymore.
hb_blob_t * +hb_blob_create_or_fail (+const char *data
, +unsigned int length
, +hb_memory_mode_t mode
, +void *user_data
, +hb_destroy_func_t destroy
);
Creates a new "blob" object wrapping data
+. The mode
+ parameter is used
+to negotiate ownership and lifecycle of data
+.
Note that this function returns a freshly-allocated empty blob even if length
+
+is zero. This is in contrast to hb_blob_create()
, which returns the singleton
+empty blob (as returned by hb_blob_get_empty()
) if length
+ is zero.
[skip]
+data |
+Pointer to blob data. |
+Â | +
length |
+Length of |
+Â | +
mode |
+Memory mode for |
+Â | +
user_data |
+Data parameter to pass to |
+Â | +
destroy |
+Callback to call when |
+[nullable] | +
Since: 2.8.2
+hb_blob_t *
hb_blob_create_from_file (const char *file_name
);
+Creates a new blob containing the data from the +specified binary font file.
file_name |
-font filename. |
+A font filename |
 |
A hb_blob_t pointer with the content of the file
+ An hb_blob_t pointer with the content of the file,
+or hb_blob_get_empty()
if failed.
Since: 1.7.7
hb_blob_t *
+hb_blob_create_from_file_or_fail (const char *file_name
);
+Creates a new blob containing the data from the +specified binary font file.
+ + +Since: 2.8.2
+hb_blob_t * hb_blob_create_sub_blob (hb_blob_t *parent
, @@ -283,7 +398,7 @@ hb_blob_create_sub_blob ();
unsigned int length
Returns a blob that represents a range of bytes in parent
. The new
-blob is always created with HB_MEMORY_MODE_READONLY
, meaning that it
+blob is always created with HB_MEMORY_MODE_READONLY, meaning that it
will never modify data in the parent blob. The parent data is not
expected to be modified, and will result in undefined behavior if it
is.
Returns
- New blob, or nullptr if allocation failed.
+ The new blob, or nullptr if allocation failed
Since: 1.8.0
const char * hb_blob_get_data (+hb_blob_t *blob
,unsigned int *length
);
Fetches the data from a blob.