Difference between revisions of "Buffer:prepend"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 6: Line 6:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(number) = Buffer:prepend(data)
 
(number) = Buffer:prepend(data)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

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