[ 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.
| data_to_copy |
Data which will be copied into the blob, or null if |
| size |
Size of the data in bytes. |
|
A newly-created Blob, or null if the data could not be copied. Error domain: Error Possible errors: OUT_OF_MEMORY if the |