Difference between revisions of "Buffer:prepend"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2020.2<br/> '''Class:''' Buffer<br/> === Description === Adds data at the beginning of a Buffer object. <sour...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
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">
+
<syntaxhighlight lang="lua">
(number) = Buffer:append(data)
+
(number) = Buffer:prepend(data)
</source>
+
</syntaxhighlight>
  
 
=== 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}}

Latest revision as of 14:26, 13 July 2023

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