Difference between revisions of "Data:getString"
m |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | data = Data:getString( ) | + | data = Data:getString( offset, size ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | + | {{New feature|12.0| | |
+ | {{param|number|offset (0)|Optional byte offset into the Data's memory to copy from.}} | ||
+ | {{param|number|size (Data:getSize())|Optionally limit the copied string to the specified number of bytes.}} | ||
+ | |120}} | ||
=== Returns === | === Returns === | ||
{{param|string|data|The raw data.}} | {{param|string|data|The raw data.}} |
Latest revision as of 16:12, 13 April 2024
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets the full Data as a string.
Function
Synopsis
data = Data:getString( offset, size )
Arguments
Available since LÖVE 12.0
Returns
string data
- The raw data.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info