develooper Front page | perl.perl6.users | Postings from June 2022

Easier way to load a buffer?

Thread Next
ToddAndMargo via perl6-users
June 10, 2022 14:49
Easier way to load a buffer?
Message ID:
Hi All,

I am looking for an easier way to load a buffer.

I know about this way

[4] > my Buf $, 0x54, 0xFF, 0x53);
Buf:0x<2A 54 FF 53>

I would like to do it on one big blast:

my Buf $;
Cannot unbox 170 bit wide bigint into native integer

But do not know the proper syntax.

Any words of wisdom?  Am I stuck with the hard way?

Many thanks,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About