Buffer:seek: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(One intermediate revision by the same user not shown)
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>
</syntaxhighlight>


=== Parameters ===
=== Parameters ===

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