Buffer:seek: Difference between revisions
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]..." |
No edit summary |
||
| Line 3: | Line 3: | ||
=== Description === | === Description === | ||
Sets the position of the next file access in a | 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) | '''offset''': (number) position at which the next file access should be done<br/> | ||
=== Return values === | === Return values === | ||
'''Returns''' (number) | '''Returns''' (number) corrected position at which the next file access will take place<br/> | ||
{{Buffer}} | {{Buffer}} | ||
Revision as of 00: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