lovr.data.newBlob
Creates a new Blob.
blob = lovr.data.newBlob(size, name)
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.
|
blob = lovr.data.newBlob(contents, name)
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.
|
blob = lovr.data.newBlob(source, name)
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.
|
See also
lovr.filesystem.newBlob
lovr.data