* Return value: New blob, or the empty blob if something failed or if @length is
* zero. Destroy with hb_blob_destroy().
*
- * Since: 1.0
+ * Since: 0.9.2
**/
hb_blob_t *
hb_blob_create (const char *data,
if (!length ||
length >= 1u << 31 ||
- data + length < data /* overflows */ ||
!(blob = hb_object_create<hb_blob_t> ())) {
if (destroy)
destroy (user_data);
* @length is zero or @offset is beyond the end of @parent's data. Destroy
* with hb_blob_destroy().
*
- * Since: 1.0
+ * Since: 0.9.2
**/
hb_blob_t *
hb_blob_create_sub_blob (hb_blob_t *parent,
*
* Return value: (transfer full): the empty blob.
*
- * Since: 1.0
+ * Since: 0.9.2
**/
hb_blob_t *
hb_blob_get_empty (void)
*
* Return value: @blob.
*
- * Since: 1.0
+ * Since: 0.9.2
**/
hb_blob_t *
hb_blob_reference (hb_blob_t *blob)
*
* See TODO:link object types for more information.
*
- * Since: 1.0
+ * Since: 0.9.2
**/
void
hb_blob_destroy (hb_blob_t *blob)
*
* Return value:
*
- * Since: 1.0
+ * Since: 0.9.2
**/
hb_bool_t
hb_blob_set_user_data (hb_blob_t *blob,
*
* Return value: (transfer none):
*
- * Since: 1.0
+ * Since: 0.9.2
**/
void *
hb_blob_get_user_data (hb_blob_t *blob,
*
*
*
- * Since: 1.0
+ * Since: 0.9.2
**/
void
hb_blob_make_immutable (hb_blob_t *blob)
*
* Return value: TODO
*
- * Since: 1.0
+ * Since: 0.9.2
**/
hb_bool_t
hb_blob_is_immutable (hb_blob_t *blob)
*
* Return value: the length of blob data in bytes.
*
- * Since: 1.0
+ * Since: 0.9.2
**/
unsigned int
hb_blob_get_length (hb_blob_t *blob)
*
* Returns: (transfer none) (array length=length):
*
- * Since: 1.0
+ * Since: 0.9.2
**/
const char *
hb_blob_get_data (hb_blob_t *blob, unsigned int *length)
* Returns: (transfer none) (array length=length): Writable blob data,
* or %NULL if failed.
*
- * Since: 1.0
+ * Since: 0.9.2
**/
char *
hb_blob_get_data_writable (hb_blob_t *blob, unsigned int *length)