love.data
| Available since LÖVE 11.0 |
| This module is not supported in earlier versions. |
Provides functionality for creating and transforming data.
Contents
Types
| ByteData | Data object containing arbitrary bytes in an contiguous memory. | ||
| CompressedData | Byte data compressed using a specific algorithm. | ||
| Data | The superclass of all data. |
Functions
| love.data.compress | Compresses a string or data using a specific compression algorithm. | ||
| love.data.decode | Decode Data or a string from any of the EncodeFormats to Data or string. | ||
| love.data.decompress | Decompresses a CompressedData or previously compressed string or Data object. | ||
| love.data.encode | Encode Data or a string to a Data or string in one of the EncodeFormats. | ||
| love.data.getPackedSize | Gets the size in bytes that a given format used with love.data.pack will use. | ||
| love.data.hash | Compute message digest using specific hash algorithm. | ||
| love.data.newByteData | Creates a new Data object containing arbitrary bytes. | ||
| love.data.newDataView | Creates a new Data referencing a subsection of an existing Data object. | ||
| love.data.pack | Packs (serializes) simple Lua values. | ||
| love.data.unpack | Unpacks (deserializes) a byte-string or Data into simple Lua values. |
Enums
| CompressedDataFormat | Compressed data formats. | ||
| ContainerType | Return type of data-returning functions. | ||
| EncodeFormat | Encoding format used to encode or decode data. | ||
| HashFunction | Hash algorithm of hash function. |
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