lovr.data.newBlobView

Edit

Creates a new Blob that does not allocate any memory of its own, but instead points at a subsection of an existing Blob.

view = lovr.data.newBlobView(parent, offset, extent, name)

Arguments

NameTypeDefaultDescription
parentBlob The parent Blob.
offsetnumber The offset of the subsection to reference, in bytes.
extentnumbernil The size of the subsection, in bytes. When nil, the subsection will extend to the end of the parent Blob.
namestring'' An optional name for the view (used in error messages).

Returns

NameTypeDescription
viewBlob The new Blob view.

See also