Difference between revisions of "Buffer:get"
From GiderosMobile
Line 3: | Line 3: | ||
=== Description === | === Description === | ||
− | Gets data from a | + | Gets data from a '''Buffer''' object. |
<source lang="lua"> | <source lang="lua"> | ||
(string) = Buffer:get(offset,size) | (string) = Buffer:get(offset,size) | ||
Line 9: | Line 9: | ||
=== Parameters === | === Parameters === | ||
− | '''offset''': (number) | + | '''offset''': (number) position in the buffer to get data from '''optional'''<br/> |
− | '''size''': (number) | + | '''size''': (number) size of the data to fetch '''optional'''<br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (string) | + | '''Returns''' (string) extracted data<br/> |
{{Buffer}} | {{Buffer}} |
Revision as of 01:54, 23 March 2022
Available since: Gideros 2020.2
Class: Buffer
Description
Gets data from a Buffer object.
(string) = Buffer:get(offset,size)
Parameters
offset: (number) position in the buffer to get data from optional
size: (number) size of the data to fetch optional
Return values
Returns (string) extracted data