NativeInterop.NativePtr 模組 (F#)
包含原始指標上的運算。 使用這些運算子可能會產生無法驗證的程式碼。
命名空間/模組路徑: Microsoft.FSharp.NativeInterop
組件:FSharp.Core (在 FSharp.Core.dll 中)
module NativePtr
值
值 |
說明 |
---|---|
加入 : nativeptr<'T> -> int -> nativeptr<'T> |
加入指定的輸入指標的位移,以傳回型別原生指標。 |
get : nativeptr<'T> -> int -> 'T |
解除參考型別由指定的輸入指標位移計算的原生指標。 |
ofNativeInt : nativeint -> nativeptr<'T> |
傳回所指定電腦位址的具型別原生指標。 |
read : nativeptr<'T> -> 'T |
取值 (Dereference) 指定的具型別原生指標。 |
set : nativeptr<'T> -> int -> 'T -> unit |
將值指派到型別由指定的輸入指標位移計算的原生指標所參考的記憶體位置。 |
stackalloc : int -> nativeptr<'T> |
在堆疊上配置記憶體區域。 |
toNativeInt : nativeptr<'T> -> nativeint |
傳回所指定具型別之原生指標的電腦位址。 |
write : nativeptr<'T> -> 'T -> unit |
將值指派至指定的原生型別指標所參考的記憶體位置。 |
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本資訊
F# 執行階段
支援版本:2.0、4.0
Silverlight
支援版本:3