How do you calculate the length of the string that will be returned by Array :: pack? Is there something like python calcsize?
array.pack (""). count I would say. Not the fastest way, but it works.
By making a translator that meets the specifications found in Array :: pack .
Or reusing an existing implementation to count the number of characters instead of adding them to a string.
Source: https://habr.com/ru/post/1697650/More articles:Performance Issue: NAL Unit Wrapping - performanceDetermining if a window is in help mode - c #Shortcut window for XFCE4 - linuxGet a list of available servers in a group of SQL servers - sqlA page that works in FF, not IE, where to start - domReturn "correct" error code or protect privacy? - securityHow to succeed in testing the web interface? - user-interfaceSubscribe via RSS for log4j magazines? - loggingSBCL on Vista crashes. Do you know how to make it work? - windows-vistaWhat is the best way to get the name of a folder that does not exist? - c #All Articles