Difference between revisions of "Buffer:set"
From GiderosMobile
Line 3: | Line 3: | ||
=== Description === | === Description === | ||
− | Sets data in a | + | Sets data in a '''Buffer''' object, extending it if necessary. |
<source lang="lua"> | <source lang="lua"> | ||
(number) = Buffer:set(data,offset) | (number) = Buffer:set(data,offset) | ||
Line 9: | Line 9: | ||
=== Parameters === | === Parameters === | ||
− | '''data''': (string) | + | '''data''': (string) data to set in the buffer<br/> |
− | '''offset''': (number) | + | '''offset''': (number) offset to write the data at '''optional'''<br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) | + | '''Returns''' (number) new buffer size<br/> |
{{Buffer}} | {{Buffer}} |
Revision as of 01:57, 23 March 2022
Available since: Gideros 2020.2
Class: Buffer
Description
Sets data in a Buffer object, extending it if necessary.
(number) = Buffer:set(data,offset)
Parameters
data: (string) data to set in the buffer
offset: (number) offset to write the data at optional
Return values
Returns (number) new buffer size