Difference between revisions of "(File):getBuffer"

(Undo revision 15147 by Hgwells (talk))
 
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