{{newin|[[11.0]]|110|type=function}}
Gets the size in bytes that a given format used with [[love.data.pack]] will use.

This function behaves the same as Lua 5.3's [https://www.lua.org/manual/5.3/manual.html#pdf-string.packsize string.packsize].
 
== Function ==
=== Synopsis ===
<source lang="lua">
size = love.data.getPackedSize( format )
</source>
=== Arguments ===
{{param|string|format|A string determining how the values are packed. Follows the rules of [https://www.lua.org/manual/5.3/manual.html#6.4.2 Lua 5.3's string.pack format strings].}}
=== Returns ===
{{param|number|size|The size in bytes that the packed data will use.}}

== Notes ==
The format string cannot have the variable-length options 's' or 'z'.

== See Also ==
* [[parent::love.data]]
* [[love.data.pack]]
* [[love.data.unpack]]
[[Category:Functions]]
{{#set:Description=Gets the size in bytes that a given format used with [[love.data.pack]] will use.}}
== Other Languages ==
{{i18n|love.data.getPackedSize}}