lovr.data.newBlob
EditCreates a new Blob.
Arguments
| Name | Type | Default | Description |
| size | number | The amount of data to allocate for the Blob, in bytes. All of the bytes will be filled with zeroes. | |
| name | string | '' | A name for the Blob (used in error messages) |
Returns
| Name | Type | Description |
| blob | Blob | The new Blob. |
Arguments
| Name | Type | Default | Description |
| contents | string | A string to use for the Blob's contents. | |
| name | string | '' | A name for the Blob (used in error messages) |
Returns
| Name | Type | Description |
| blob | Blob | The new Blob. |
Arguments
| Name | Type | Default | Description |
| source | Blob | A Blob to copy the contents from. | |
| name | string | '' | A name for the Blob (used in error messages) |
Returns
| Name | Type | Description |
| blob | Blob | The new Blob. |