{{newin|[[11.0]]|110|type=function}}
Creates a new Data referencing a subsection of an existing Data object.
 {{newobjectnotice}}
== Function ==
=== Synopsis ===
<source lang="lua">
view = love.data.newDataView( data, offset, size )
</source>
=== Arguments ===
{{param|Data|data|The Data object to reference.}}
{{param|number|offset|The offset of the subsection to reference, in bytes.}}
{{param|number|size|The size in bytes of the subsection to reference.}}
=== Returns ===
{{param|Data|view|The new Data view.}}

== Notes ==
[[Data:getString]] and [[Data:getPointer]] will return the original Data object's contents, with the view's offset and size applied.

== See Also ==
* [[parent::love.data]]
[[Category:Functions]]
{{#set:Description=Creates a new Data referencing a subsection of an existing Data object.}}
== Other Languages ==
{{i18n|love.data.newDataView}}