提交 1fffe51a 编写于 作者: B Behdad Esfahbod

[blob] Shuffle

上级 96de9476
...@@ -71,6 +71,9 @@ hb_blob_create (const char *data, ...@@ -71,6 +71,9 @@ hb_blob_create (const char *data,
void *user_data, void *user_data,
hb_destroy_func_t destroy); hb_destroy_func_t destroy);
HB_EXTERN hb_blob_t *
hb_blob_create_from_file (const char *file_name);
/* Always creates with MEMORY_MODE_READONLY. /* Always creates with MEMORY_MODE_READONLY.
* Even if the parent blob is writable, we don't * Even if the parent blob is writable, we don't
* want the user of the sub-blob to be able to * want the user of the sub-blob to be able to
...@@ -123,9 +126,6 @@ hb_blob_get_data (hb_blob_t *blob, unsigned int *length); ...@@ -123,9 +126,6 @@ hb_blob_get_data (hb_blob_t *blob, unsigned int *length);
HB_EXTERN char * HB_EXTERN char *
hb_blob_get_data_writable (hb_blob_t *blob, unsigned int *length); hb_blob_get_data_writable (hb_blob_t *blob, unsigned int *length);
HB_EXTERN hb_blob_t *
hb_blob_create_from_file (const char *file_name);
HB_END_DECLS HB_END_DECLS
#endif /* HB_BLOB_H */ #endif /* HB_BLOB_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册