語言

JniEnvironment.InstanceFields.GetFieldID 方法

定義

多載

名稱 Description
GetFieldID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

使用 null-terminaled UTF-8 名稱與簽章區間來查詢 JNI 實例欄位 ID。 "fieldName"u8使用文字函數以避免字串分流過頭。

GetFieldID(JniObjectReference, String, String)

GetFieldID(JniObjectReference, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

使用 null-terminaled UTF-8 名稱與簽章區間來查詢 JNI 實例欄位 ID。 "fieldName"u8使用文字函數以避免字串分流過頭。

public static Java.Interop.JniFieldInfo GetFieldID(Java.Interop.JniObjectReference type, ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
static member GetFieldID : Java.Interop.JniObjectReference * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniFieldInfo

參數

signature
ReadOnlySpan<Byte>

傳回

適用於

GetFieldID(JniObjectReference, String, String)

public static Java.Interop.JniFieldInfo GetFieldID(Java.Interop.JniObjectReference type, string name, string signature);
static member GetFieldID : Java.Interop.JniObjectReference * string * string -> Java.Interop.JniFieldInfo

參數

name
String
signature
String

傳回

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於