Difference between revisions of "Buffer:set"
From GiderosMobile
Line 9: | Line 9: | ||
=== Parameters === | === Parameters === | ||
− | '''data''': (string) Data to set in the buffer | + | '''data''': (string) Data to set in the buffer.<br/> |
'''offset''': (number) Offset to write the data at. '''optional''' | '''offset''': (number) Offset to write the data at. '''optional''' | ||
Revision as of 10:11, 7 February 2020
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.