Difference between revisions of "Buffer:seek"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2020.2<br/> '''Class:''' Buffer<br/> === Description === Sets the position of the next file access in a [[Special:MyLanguage/Buffer|Buffer]...")
 
Line 3: Line 3:
  
 
=== Description ===
 
=== Description ===
Sets the position of the next file access in a [[Special:MyLanguage/Buffer|Buffer]] object.
+
Sets the position of the next file access in a '''Buffer''' object.
 
<source lang="lua">
 
<source lang="lua">
 
(number) = Buffer:seek(offset)
 
(number) = Buffer:seek(offset)
Line 9: Line 9:
  
 
=== Parameters ===
 
=== Parameters ===
'''offset''': (number) Position at which the next file access should be done.
+
'''offset''': (number) position at which the next file access should be done<br/>
  
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) Corrected position at which the next file access will take place.<br/>
+
'''Returns''' (number) corrected position at which the next file access will take place<br/>
  
 
{{Buffer}}
 
{{Buffer}}

Revision as of 01:56, 23 March 2022

Available since: Gideros 2020.2
Class: Buffer

Description

Sets the position of the next file access in a Buffer object.

(number) = Buffer:seek(offset)

Parameters

offset: (number) position at which the next file access should be done

Return values

Returns (number) corrected position at which the next file access will take place