Blob


Description:

[ CCode ( has_construct_function = false ) ]
public Blob (uint8[] data_to_copy) throws Error

Creates a new Blob object to hold the specified data.

The blob can then be used as a facility for reference-counting for the data. The data is copied internally, so the blob does not hold references to external chunks of memory.

Parameters:

data_to_copy

Data which will be copied into the blob, or null if data_to_copy.length is zero.

size

Size of the data in bytes.

Returns:

A newly-created Blob, or null if the data could not be copied.

Error domain: Error

Possible errors: OUT_OF_MEMORY if the data_to_copy could not be copied.