Difference between revisions of "(File):getBuffer"
Line 1: | Line 1: | ||
{{newin|[[0.9.0]]|090|type=function}} | {{newin|[[0.9.0]]|090|type=function}} | ||
− | + | Gets the buffer mode of a file. | |
− | == | + | == Function == |
− | === | + | === Synopsis === |
<source lang="lua"> | <source lang="lua"> | ||
mode, size = File:getBuffer( ) | mode, size = File:getBuffer( ) | ||
</source> | </source> | ||
− | === | + | === Arguments === |
− | + | None. | |
− | === | + | === Returns === |
− | {{param|BufferMode|mode| | + | {{param|BufferMode|mode|The current buffer mode of the file.}} |
− | {{param|number|size| | + | {{param|number|size|The maximum size in bytes of the file's buffer.}} |
− | == | + | == See Also == |
− | * [[parent::File | + | * [[parent::File]] |
− | * [[(File):setBuffer|File:setBuffer | + | * [[(File):setBuffer|File:setBuffer]] |
* [[(File):write|File:write]] | * [[(File):write|File:write]] | ||
− | [[Category:Functions | + | [[Category:Functions]] |
− | {{#set:Description= | + | {{#set:Description=Gets the buffer mode of a file.}} |
− | == | + | == Other Languages == |
{{i18n|(File):getBuffer}} | {{i18n|(File):getBuffer}} |
Latest revision as of 14:49, 6 August 2015
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets the buffer mode of a file.
Function
Synopsis
mode, size = File:getBuffer( )
Arguments
None.
Returns
BufferMode mode
- The current buffer mode of the file.
number size
- The maximum size in bytes of the file's buffer.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info