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