Re: Access to Word8Array.arrayUninit

Matthew Fluet <[email protected]> Mon, 14 Nov 2016 12:23:59 -0500
Newsgroups gmane.comp.lang.ml.mlton.user
Message-ID <CAMrhFL7XQ-wh0GvhjLUu70s_wUskWSrZJ5h2kSsk1vG17GE-VQ@mail.gmail.com>
You can use "$(SML_LIB)/basis/unsafe.mlb" to access the Unsafe
structure: http://mlton.org/UnsafeStructure.  You should be able to
use "Unsafe.Word8Array.create" to create an uninitialized array.


On Mon, Nov 14, 2016 at 4:13 AM, Kostirya <[email protected]> wrote:
> Hello.
> I use now Primitive.Array.arrayUnsafe for FFI:
>
>   val arrayUnsafe = Primitive.Array.arrayUnsafe                  (* 32bit OS *)
>   val arrayUnsafe = Primitive.Array.arrayUnsafe o Int64.fromInt  (* 64bit OS *)
>
> To have one version code for 32bit both 64bit OS I want to use
> Word8Array.arrayUninit instead Primitive.Array.arrayUnsafe.
>
> But I can not access Word8Array.arrayUninit.
> Please, tell me which mlb file I must plug.
>
> Nick.
>
> --
> You received this message because you are subscribed to the Google Groups "MLton-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> MLton-user mailing list
> [email protected]; [email protected]
> https://lists.sourceforge.net/lists/listinfo/mlton-user

-- 
You received this message because you are subscribed to the Google Groups "MLton-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].


------------------------------------------------------------------------------