Buffer:get: Difference between revisions

From GiderosMobile
Created page with "'''Available since:''' Gideros 2020.2<br/> '''Class:''' Buffer<br/> === Description === Gets data from a Buffer object. <source lang="lua">..."
 
No edit summary
Line 9: Line 9:


=== 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'''



Revision as of 09:10, 7 February 2020

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.