lovr.data.newBlob

Edit

Creates a new Blob.




Arguments

NameTypeDefaultDescription
sizenumber The amount of data to allocate for the Blob, in bytes. All of the bytes will be filled with zeroes.
namestring'' A name for the Blob (used in error messages)

Returns

NameTypeDescription
blobBlob The new Blob.

Arguments

NameTypeDefaultDescription
contentsstring A string to use for the Blob's contents.
namestring'' A name for the Blob (used in error messages)

Returns

NameTypeDescription
blobBlob The new Blob.

Arguments

NameTypeDefaultDescription
sourceBlob A Blob to copy the contents from.
namestring'' A name for the Blob (used in error messages)

Returns

NameTypeDescription
blobBlob The new Blob.

See also