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]...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
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">
+
<syntaxhighlight lang="lua">
 
(number) = Buffer:seek(offset)
 
(number) = Buffer:seek(offset)
</source>
+
</syntaxhighlight>
  
 
=== 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}}

Latest revision as of 14:27, 13 July 2023

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