in reply to Re: Can unpack add zero bytes before converting?
in thread Can unpack add zero bytes before converting?
Maybe unpack can't but pack can :)
try:
return unpack '(Q<)*', pack '(a8)*', unpack "(a$length)*", $stream;
And you no longer need $pad or the map.
semi-tested :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can unpack add zero bytes before converting?
by Anonymous Monk on Sep 13, 2021 at 12:45 UTC |