Created
April 23, 2019 14:37
-
-
Save Whateverable/704d1c7c23081228e72e464cde9276ab to your computer and use it in GitHub Desktop.
evalable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use NativeCall; my $buf = CArray[uint8].allocate(99); my $ptr = nativecast(Pointer[uint8], $buf); say $ptr; say nativecast(Pointer[uint8], $ptr + 10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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