Difference between revisions of "Buffer:get"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2020.2<br/> '''Class:''' Buffer<br/> === Description === Gets data from a Buffer object. <source lang="lua">...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
=== Description ===
 
=== Description ===
Gets data from a [[Special:MyLanguage/Buffer|Buffer]] object.
+
Gets data from a '''Buffer''' object.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(string) = Buffer:get(offset,size)
 
(string) = Buffer:get(offset,size)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
'''offset''': (number) Position in the buffer to get data from. '''optional'''
+
'''offset''': (number) position in the buffer to get data from '''optional'''<br/>
'''size''': (number) Size of the data to fetch. '''optional'''
+
'''size''': (number) size of the data to fetch '''optional'''<br/>
  
 
=== Return values ===
 
=== Return values ===
'''Returns''' (string) Extracted data.<br/>
+
'''Returns''' (string) extracted data<br/>
  
 
{{Buffer}}
 
{{Buffer}}

Latest revision as of 14: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