Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Creates a new Data referencing a subsection of an existing Data object.
![]() |
This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! |
view = love.data.newDataView( data, offset, size )
Data data
number offset
number size
Data view
Data:getString and Data:getPointer will return the original Data object's contents, with the view's offset and size applied.