Difference between revisions of "Buffer:set"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Sets data in a '''Buffer''' object, extending it if necessary.
 
Sets data in a '''Buffer''' object, extending it if necessary.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = Buffer:set(data,offset)
 
(number) = Buffer:set(data,offset)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 14:26, 13 July 2023

Available since: Gideros 2020.2
Class: Buffer

Description

Sets data in a Buffer object, extending it if necessary.

(number) = Buffer:set(data,offset)

Parameters

data: (string) data to set in the buffer
offset: (number) offset to write the data at optional

Return values

Returns (number) new buffer size