develooper Front page | perl.perl6.users | Postings from December 2019

NativeCall and C String question

ToddAndMargo via perl6-users
December 30, 2019 07:12
NativeCall and C String question
Message ID:
Hi All,

When Native call gives me back an address and byte count
to a C string, how do I turn that into a Raku string?

Address = 5636171  0x56004B
byte count = 14  (UTF16) two of these are presumed to be chr(0)

Actual string is `KVM-W7`

Many thanks,

Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About