Difference between revisions of "ContainerType"

m
m
Line 1: Line 1:
 
{{newin|[[0.11.0]]|110|type=enum}}
 
{{newin|[[0.11.0]]|110|type=enum}}
 
Return type of various encoding and decoding functions.
 
Return type of various encoding and decoding functions.
{{notice|This is unofficial documentation. This might be not accurate!}}
 
 
== Constants ==
 
== Constants ==
 
;data: Return type is [[Data]].
 
;data: Return type is [[Data]].
 
;string: Return type is [[string]].
 
;string: Return type is [[string]].
 
== Notes ==
 
== Notes ==
Use "data" return type if you want to pass the data to another thread, and use "string" return type if you want to use it immediately, like sending it to network.
+
Use '''data''' return type if you want to pass the data to another thread, and use '''string''' return type if you want to use it immediately, like sending it to network.
 
== See Also ==
 
== See Also ==
 
* [[parent::love.data]]
 
* [[parent::love.data]]
 
* [[love.data.compress]]
 
* [[love.data.compress]]
 
* [[love.data.decompress]]
 
* [[love.data.decompress]]
 +
* [[love.data.encode]]
 +
* [[love.data.decode]]
 
* [[CompressedData]]
 
* [[CompressedData]]
 
[[Category:Enums]]
 
[[Category:Enums]]

Revision as of 12:39, 18 January 2018

Available since LÖVE 0.11.0
This enum is not supported in earlier versions.

Return type of various encoding and decoding functions.

Constants

data
Return type is Data.
string
Return type is string.

Notes

Use data return type if you want to pass the data to another thread, and use string return type if you want to use it immediately, like sending it to network.

See Also

Other Languages