in reply to Re^3: zero fill with pack
in thread zero fill with pack

ikegami - I found out I need to be able to handle one or two bytes worth of data adding nine or eight spaces: e.g., 00 20 20 20 20 20 20 20 20 20 or 00 00 20 20 20 20 20 20 20 20 Is there something smaller than an unsigned short (16bit)? I'm trying to figure out the correct pack template to use for the above examples.

Replies are listed 'Best First'.
Re^5: zero fill with pack
by Spooky (Beadle) on Jun 25, 2010 at 15:28 UTC
    ikegami - I think I figured it out for myself using the "i" and "n" templates....