将Blob中的数据转换为Num的Perl6代码

7
1个回答

10

导入NativeCall,将其转换为所需类型的指针,然后对结果进行解引用:

use NativeCall;
nativecast(Pointer[num32], $blob).deref;

似乎没有IEEE Long Double类型?我找不到num128。 - Martin Barth

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接