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

Re: Help converting CArray[uint8] to Blob

Thread Previous | Thread Next
From:
Ralph Mellor
Date:
June 17, 2020 11:57
Subject:
Re: Help converting CArray[uint8] to Blob
Message ID:
CAPLR5SfgognFz1qgNEQ21BOyOMVZZKKFwusbtTtvipNQaK119g@mail.gmail.com
> Unfortunately, i get the error "Error X::AdHoc+{X::Await::Died}+{X::React::Died}: Don't know how many
elements a C array returned from a library"

I googled the error message and got a bunch of matches including this:

https://stackoverflow.com/questions/51081475/getting-data-out-of-native-pointers

This will show the way to maximize the speed because it minimizes
the *number* of copy operations (to one) and expense of the copy
(by making it native code).

hth

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About