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
| Name | Type | Default | Description |
| parent | Blob | |
The parent Blob.
|
| offset | number | |
The offset of the subsection to reference, in bytes.
|
| extent | number | nil |
The size of the subsection, in bytes. When nil, the subsection will extend to the end of the parent Blob.
|
| name | string | '' |
An optional name for the view (used in error messages).
|
Returns
| Name | Type | Description |
| view | Blob |
The new Blob view.
|
See also