Difference between revisions of "Buffer:seek"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Sets the position of the next file access in a '''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>
 
</source>

Revision as of 15:26, 13 July 2023

Available since: Gideros 2020.2
Class: Buffer

Description

Sets the position of the next file access in a Buffer object. <syntaxhighlight lang="lua"> (number) = Buffer:seek(offset) </source>

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