Difference between revisions of "Buffer:append"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Adds data at the end of a '''Buffer''' object.
 
Adds data at the end of a '''Buffer''' object.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = Buffer:append(data)
 
(number) = Buffer:append(data)
 
</source>
 
</source>

Revision as of 15:26, 13 July 2023

Available since: Gideros 2020.2
Class: Buffer

Description

Adds data at the end of a Buffer object. <syntaxhighlight lang="lua"> (number) = Buffer:append(data) </source>

Parameters

data: (string) data to add

Return values

Returns (number) new buffer size