love.data.pack
Available since LÖVE 0.11.0 |
This function is not supported in earlier versions. |
Packs (serializes) simple Lua values.
This function behaves the same as Lua 5.3's string.pack function.
Function
Synopsis
data = love.data.pack( container, format, v1, ... )
Arguments
ContainerType container
- What type to return the encoded data as.
string format
- A string determining how the values are packed. Follows the rules of Lua 5.3's string.pack formats.
value v1
- The first value (number, boolean, or string) to serialize.
value ...
- Additional values to serialize.
Returns
Notes
Packing integers with values greater than 2^52 is not supported, as Lua 5.1 cannot represent those values in its number type.
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