JniType.GetCachedInstanceField Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetCachedInstanceField(JniFieldInfo, String, String) |
Gets a cached instance-field identifier, looking it up when the cache is empty. |
| GetCachedInstanceField(JniFieldInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Gets a cached instance-field identifier, looking it up when the cache is empty. |
GetCachedInstanceField(JniFieldInfo, String, String)
Gets a cached instance-field identifier, looking it up when the cache is empty.
public Java.Interop.JniFieldInfo GetCachedInstanceField(ref Java.Interop.JniFieldInfo? cachedField, string name, string signature);
member this.GetCachedInstanceField : JniFieldInfo * string * string -> Java.Interop.JniFieldInfo
Parameters
- cachedField
- JniFieldInfo
The cache location for this exact instance field. Supply null or a valid cached identifier.
- name
- String
The Java field name.
- signature
- String
The JNI field descriptor.
Returns
The instance-field information held in the cache.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GetCachedInstanceField(JniFieldInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
Gets a cached instance-field identifier, looking it up when the cache is empty.
public Java.Interop.JniFieldInfo GetCachedInstanceField(ref Java.Interop.JniFieldInfo? cachedField, ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
member this.GetCachedInstanceField : JniFieldInfo * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniFieldInfo
Parameters
- cachedField
- JniFieldInfo
The cache location for this exact instance field. Supply null or a valid cached identifier.
- name
- ReadOnlySpan<Byte>
The JNI field-name bytes, with a null terminator available to native code.
- signature
- ReadOnlySpan<Byte>
The JNI field descriptor bytes, with a null terminator available to native code.
Returns
The instance-field information held in the cache.
Remarks
The cache is used without rechecking the requested name and signature. Use a separate cache for each exact instance field.