Difference between revisions of "Buffer:prepend"

From GiderosMobile
Line 3: Line 3:
  
 
=== Description ===
 
=== Description ===
Adds data at the beginning of a [[Special:MyLanguage/Buffer|Buffer]] object.
+
Adds data at the beginning of a '''Buffer''' object.
 
<source lang="lua">
 
<source lang="lua">
 
(number) = Buffer:prepend(data)
 
(number) = Buffer:prepend(data)
Line 9: Line 9:
  
 
=== Parameters ===
 
=== Parameters ===
'''data''': (string) Data to add
+
'''data''': (string) data to add<br/>
  
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) New buffer size.<br/>
+
'''Returns''' (number) new buffer size<br/>
  
 
{{Buffer}}
 
{{Buffer}}

Revision as of 01:55, 23 March 2022

Available since: Gideros 2020.2
Class: Buffer

Description

Adds data at the beginning of a Buffer object.

(number) = Buffer:prepend(data)

Parameters

data: (string) data to add

Return values

Returns (number) new buffer size