JniType.GetCachedStaticField 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 |
|---|---|
| GetCachedStaticField(JniFieldInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Gets a cached static-field identifier, looking it up when the cache is empty. |
| GetCachedStaticField(JniFieldInfo, String, String) |
Gets a cached static-field identifier, looking it up when the cache is empty. |
GetCachedStaticField(JniFieldInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
Gets a cached static-field identifier, looking it up when the cache is empty.
public Java.Interop.JniFieldInfo GetCachedStaticField(ref Java.Interop.JniFieldInfo? cachedField, ReadOnlySpan<byte> name, ReadOnlySpan<byte> signature);
member this.GetCachedStaticField : JniFieldInfo * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> Java.Interop.JniFieldInfo
Parameters
- cachedField
- JniFieldInfo
The cache location for this exact static 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 static-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 static field.
Applies to
GetCachedStaticField(JniFieldInfo, String, String)
Gets a cached static-field identifier, looking it up when the cache is empty.
public Java.Interop.JniFieldInfo GetCachedStaticField(ref Java.Interop.JniFieldInfo? cachedField, string name, string signature);
member this.GetCachedStaticField : JniFieldInfo * string * string -> Java.Interop.JniFieldInfo
Parameters
- cachedField
- JniFieldInfo
The cache location for this exact static field. Supply null or a valid cached identifier.
- name
- String
The Java field name.
- signature
- String
The JNI field descriptor.
Returns
The static-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.