Difference between revisions of "Buffer:get"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 6: Line 6:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(string) = Buffer:get(offset,size)
 
(string) = Buffer:get(offset,size)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 15:26, 13 July 2023

Available since: Gideros 2020.2
Class: Buffer

Description

Gets data from a Buffer object.

(string) = Buffer:get(offset,size)

Parameters

offset: (number) position in the buffer to get data from optional
size: (number) size of the data to fetch optional

Return values

Returns (string) extracted data