Array.pin use nativeptr , but I don't understand usage - not found example
val pin : 'a [] -> ('a nativeptr -> 'b) -> 'b
A native pointer to the first element in the array is passed to the given function (??)

Array2.geta return nativeptr - no test actualy
[<UnverifiableAttribute ()>]
val geta : 'a [,] -> int -> int -> 'a nativeptr
Get the address of an element in the array

Array2.pin : exist (??)

Array3.geta : not exist
Array3.pin : not exist

By on 8/10/2008 6:50 PM ()

Array.pin is used like this:

1
Array.pin myArr (fun pinnedArr -> (* Do something with the array pointer here, returning a value or unit *) )

Array2.pin behaves the same way.Array.geta seems to have been removed with the CTP, but it wasn't what you would need here anyway.Hope that helps.

By on 12/5/2008 2:30 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper