NativePtr.set<'T> 函式 (F#)
將值指派至由指定輸入的指標來計算的原生指標型別參考的記憶體位置。
命名空間/模組路徑: Microsoft.FSharp.NativeInterop.NativePtr
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
NativePtr.set : nativeptr<'T> -> int -> 'T -> unit (requires unmanaged)
// Usage:
NativePtr.set address index value
參數
備註
的位移指標 index * sizeof<'T>
這個函式是名為 SetPointerInlined中 已編譯的組件。 如果從一個語言,F # 以外,或透過反映存取函式使用這個名稱。
平台
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