my @items := nqp::unpack( 'U2 (xxxC)[W]', $binary_string );
I, FROGGS, solemnly propose the implementation of pack()
and unpack
in nqp.
For one, these are useful for Perl 5 and Perl 6, and the other reason is that they should be pretty fast.
If a backend then can even provide a faster implementation (e.g. in C), then it would be easy to #ifdef
it in.
The signatures I propose are: