love.data.unpack
Unpacks (deserializes) a byte-string or Data into simple Lua values.

This function behaves the same as Lua 5.3's string.unpack.
v1, ..., index = love.data.unpack( format, datastring, pos )
format string A string determining how the values were packed. Follows the rules of Lua 5.3's string.pack format strings.
datastring string A string containing the packed (serialized) data.
pos (1) number Where to start reading in the string. Negative values can be used to read relative from the end of the string.
v1 number or boolean or string The first value (number, boolean, or string) that was unpacked.
... number or boolean or string Additional unpacked values.
index number The index of the first unread byte in the data string.
v1, ..., index = love.data.unpack( format, data, pos )
format string A string determining how the values were packed. Follows the rules of Lua 5.3's string.pack format strings.
data Data A Data object containing the packed (serialized) data.
pos (1) number 1-based index indicating where to start reading in the Data. Negative values can be used to read relative from the end of the Data object.
v1 number or boolean or string The first value (number, boolean, or string) that was unpacked.
... number or boolean or string Additional unpacked values.
index number The 1-based index of the first unread byte in the Data.