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