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...")
 
Line 5: Line 5:
 
Adds data at the beginning of a [[Special:MyLanguage/Buffer|Buffer]] object.
 
Adds data at the beginning of a [[Special:MyLanguage/Buffer|Buffer]] object.
 
<source lang="lua">
 
<source lang="lua">
(number) = Buffer:append(data)
+
(number) = Buffer:prepend(data)
 
</source>
 
</source>
  

Revision as of 09:56, 7 February 2020

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.