Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 23, 2019 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/704d1c7c23081228e72e464cde9276ab to your computer and use it in GitHub Desktop.
Save Whateverable/704d1c7c23081228e72e464cde9276ab to your computer and use it in GitHub Desktop.
evalable6
use NativeCall; my $buf = CArray[uint8].allocate(99); my $ptr = nativecast(Pointer[uint8], $buf); say $ptr; say nativecast(Pointer[uint8], $ptr + 10);
(exit code 1)
NativeCall::Types::Pointer[uint8]<0x555c03dec870>
Native call expected return type with CPointer, CStruct, CArray, or VMArray representation, but got a P6opaque (Int)
in sub nativecast at /tmp/whateverable/rakudo-moar/235f14cd5138663c35f574a694e45b5bc0141031/share/perl6/sources/947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall) line 685
in block <unit> at /tmp/4IUboh1x65 line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment