gio-android-slides/jni/jni.html

1377 lines
51 KiB
HTML
Raw Permalink Normal View History

2020-06-25 12:43:58 -04:00
<!DOCTYPE html>
<!-- saved from url=(0045)http://localhost:6060/pkg/git.wow.st/gmp/jni/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#375EAB">
<title>jni - The Go Programming Language</title>
<link type="text/css" rel="stylesheet" href="./jni - The Go Programming Language_files/style.css">
<script>window.initFuncs = [];</script>
<script src="./jni - The Go Programming Language_files/jquery.js" defer=""></script>
<script>var goVersion = "go1.14.1";</script>
<script src="./jni - The Go Programming Language_files/godocs.js" defer=""></script>
<script data-dapp-detection="">
(function() {
let alreadyInsertedMetaTag = false
function __insertDappDetected() {
if (!alreadyInsertedMetaTag) {
const meta = document.createElement('meta')
meta.name = 'dapp-detected'
document.head.appendChild(meta)
alreadyInsertedMetaTag = true
}
}
if (window.hasOwnProperty('web3')) {
// Note a closure can't be used for this var because some sites like
// www.wnyc.org do a second script execution via eval for some reason.
window.__disableDappDetectionInsertion = true
// Likely oldWeb3 is undefined and it has a property only because
// we defined it. Some sites like wnyc.org are evaling all scripts
// that exist again, so this is protection against multiple calls.
if (window.web3 === undefined) {
return
}
__insertDappDetected()
} else {
var oldWeb3 = window.web3
Object.defineProperty(window, 'web3', {
configurable: true,
set: function (val) {
if (!window.__disableDappDetectionInsertion)
__insertDappDetected()
oldWeb3 = val
},
get: function () {
if (!window.__disableDappDetectionInsertion)
__insertDappDetected()
return oldWeb3
}
})
}
})()</script></head>
<body>
<div id="lowframe" style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
...
</div><!-- #lowframe -->
<div id="topbar" class="wide"><div class="container">
<div class="top-heading" id="heading-wide"><a href="http://localhost:6060/">The Go Programming Language</a></div>
<div class="top-heading" id="heading-narrow"><a href="http://localhost:6060/">Go</a></div>
<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#" id="menu-button"><span id="menu-button-arrow"></span></a>
<form method="GET" action="http://localhost:6060/search">
<div id="menu" style="min-width: 60px;">
<a href="http://localhost:6060/doc/">Documents</a>
<a href="http://localhost:6060/pkg/">Packages</a>
<a href="http://localhost:6060/project/">The Project</a>
<a href="http://localhost:6060/help/">Help</a>
<a href="http://localhost:6060/blog/">Blog</a>
<span class="search-box"><input type="search" id="search" name="q" placeholder="Search" aria-label="Search" required=""><button type="submit"><span><!-- magnifying glass: --><svg width="24" height="24" viewBox="0 0 24 24"><title>submit search</title><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></button></span>
</div>
</form>
</div></div>
<div id="page" class="wide" tabindex="-1" style="outline: 0px;">
<div class="container">
<h1>
Package jni
<span class="text-muted"></span>
</h1>
<div id="nav"></div>
<!--
Copyright 2009 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<!--
Note: Static (i.e., not template-generated) href and id
attributes start with "pkg-" to make it impossible for
them to conflict with generated attributes (some of which
correspond to Go identifiers).
-->
<script>
document.ANALYSIS_DATA = null;
document.CALLGRAPH = null;
</script>
<div id="short-nav">
<dl>
<dd><code>import "git.wow.st/gmp/jni"</code></dd>
</dl>
<dl>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#pkg-overview" class="overviewLink">Overview</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#pkg-index" class="indexLink">Index</a></dd>
</dl>
</div>
<!-- The package's Name is printed as title by the top-level template -->
<div id="pkg-overview" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
<p>
Package jni implements various helper functions for communicating with the
Android JVM though JNI.
</p>
</div>
</div>
<div id="pkg-index" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
<div id="manual-nav">
<dl>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#pkg-constants">Constants</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallIntMethod">func CallIntMethod(e Env, obj Object, method MethodID, args ...Value) (int32, error)</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallStaticIntMethod">func CallStaticIntMethod(e Env, cls Class, method MethodID, args ...Value) (int, error)</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallStaticVoidMethod">func CallStaticVoidMethod(e Env, cls Class, method MethodID, args ...Value) error</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallVoidMethod">func CallVoidMethod(e Env, obj Object, method MethodID, args ...Value) error</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#DeleteGlobalRef">func DeleteGlobalRef(e Env, obj Object)</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#DeleteLocalRef">func DeleteLocalRef(e Env, obj Object)</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Do">func Do(vm JVM, f func(env Env) error) error</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetBooleanField">func GetBooleanField(env Env, obj Object, fieldID FieldID) bool</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetByteArrayElements">func GetByteArrayElements(e Env, jarr ByteArray) []byte</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetByteField">func GetByteField(env Env, obj Object, fieldID FieldID) byte</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetCharField">func GetCharField(env Env, obj Object, fieldID FieldID) byte</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetDoubleField">func GetDoubleField(env Env, obj Object, fieldID FieldID) float64</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetFloatField">func GetFloatField(env Env, obj Object, fieldID FieldID) float32</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetIntField">func GetIntField(env Env, obj Object, fieldID FieldID) int32</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetLongField">func GetLongField(env Env, obj Object, fieldID FieldID) int64</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetShortField">func GetShortField(env Env, obj Object, fieldID FieldID) int16</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticBooleanField">func GetStaticBooleanField(env Env, clazz Class, fieldID FieldID) bool</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticByteField">func GetStaticByteField(env Env, clazz Class, fieldID FieldID) byte</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticCharField">func GetStaticCharField(env Env, clazz Class, fieldID FieldID) byte</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticDoubleField">func GetStaticDoubleField(env Env, clazz Class, fieldID FieldID) float64</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticFloatField">func GetStaticFloatField(env Env, clazz Class, fieldID FieldID) float32</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticIntField">func GetStaticIntField(env Env, clazz Class, fieldID FieldID) int32</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticLongField">func GetStaticLongField(env Env, clazz Class, fieldID FieldID) int64</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticShortField">func GetStaticShortField(env Env, clazz Class, fieldID FieldID) int16</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GoString">func GoString(e Env, str String) string</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#IsInstanceOf">func IsInstanceOf(e Env, obj Object, cls Class) bool</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#IsSameObject">func IsSameObject(e Env, ref1, ref2 Object) bool</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#ByteArray">type ByteArray</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#NewByteArray">func NewByteArray(e Env, content []byte) ByteArray</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">type Class</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FindClass">func FindClass(e Env, name string) Class</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetObjectClass">func GetObjectClass(e Env, obj Object) Class</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#LoadClass">func LoadClass(e Env, loader Object, class string) (Class, error)</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">type Env</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#EnvFor">func EnvFor(envPtr uintptr) Env</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">type FieldID</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetFieldID">func GetFieldID(e Env, cls Class, name, signature string) FieldID</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticFieldID">func GetStaticFieldID(e Env, cls Class, name, signature string) FieldID</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JVM">type JVM</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CreateJavaVM">func CreateJavaVM(opts ...string) JVM</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JVMFor">func JVMFor(jvmPtr uintptr) JVM</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">type MethodID</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetMethodID">func GetMethodID(e Env, cls Class, name, signature string) MethodID</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticMethodID">func GetStaticMethodID(e Env, cls Class, name, signature string) MethodID</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">type Object</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallObjectMethod">func CallObjectMethod(e Env, obj Object, method MethodID, args ...Value) (Object, error)</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallStaticObjectMethod">func CallStaticObjectMethod(e Env, cls Class, method MethodID, args ...Value) (Object, error)</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#ClassLoaderFor">func ClassLoaderFor(e Env, obj Object) Object</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetObjectField">func GetObjectField(env Env, obj Object, fieldID FieldID) Object</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticObjectField">func GetStaticObjectField(env Env, clazz Class, fieldID FieldID) Object</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#NewGlobalRef">func NewGlobalRef(e Env, obj Object) Object</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#NewLocalRef">func NewLocalRef(e Env, obj Object) Object</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#NewObject">func NewObject(e Env, cls Class, method MethodID, args ...Value) (Object, error)</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#String">type String</a></dd>
<dd>&nbsp; &nbsp; <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JavaString">func JavaString(e Env, str string) String</a></dd>
<dd><a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value">type Value</a></dd>
</dl>
</div><!-- #manual-nav -->
<h3>Package files</h3>
<p>
<span style="font-size:90%">
<a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go">jni.go</a>
<a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni_darwin.go">jni_darwin.go</a>
<a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni_notandroid.go">jni_notandroid.go</a>
</span>
</p>
</div><!-- .expanded -->
</div><!-- #pkg-index -->
<h2 id="pkg-constants">Constants <a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#pkg-constants"></a></h2>
<pre>const (
<span id="TRUE">TRUE</span> = <a href="http://localhost:6060/pkg/C/">C</a>.<a href="http://localhost:6060/pkg/C/#JNI_TRUE">JNI_TRUE</a>
<span id="FALSE">FALSE</span> = <a href="http://localhost:6060/pkg/C/">C</a>.<a href="http://localhost:6060/pkg/C/#JNI_FALSE">JNI_FALSE</a>
)</pre>
<h2 id="CallIntMethod">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=4420:4504#L143">CallIntMethod</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallIntMethod"></a>
</h2>
<pre>func CallIntMethod(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, method <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a>, args ...<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value">Value</a>) (<a href="http://localhost:6060/pkg/builtin/#int32">int32</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
CallIntMethod calls a method on an object, returning an int32.
</p>
<h2 id="CallStaticIntMethod">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=2234:2321#L91">CallStaticIntMethod</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallStaticIntMethod"></a>
</h2>
<pre>func CallStaticIntMethod(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, method <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a>, args ...<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value">Value</a>) (<a href="http://localhost:6060/pkg/builtin/#int">int</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
CallStaticIntMethod calls a static method on a Java class, returning an int.
</p>
<h2 id="CallStaticVoidMethod">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=3295:3376#L118">CallStaticVoidMethod</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallStaticVoidMethod"></a>
</h2>
<pre>func CallStaticVoidMethod(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, method <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a>, args ...<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value">Value</a>) <a href="http://localhost:6060/pkg/builtin/#error">error</a></pre>
<p>
CallStaticVoidMethod calls a static method on a Java class, returning
nothing.
</p>
<h2 id="CallVoidMethod">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=3557:3633#L124">CallVoidMethod</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallVoidMethod"></a>
</h2>
<pre>func CallVoidMethod(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, method <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a>, args ...<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value">Value</a>) <a href="http://localhost:6060/pkg/builtin/#error">error</a></pre>
<p>
CallVoidMethod calls a method on an object, returning nothing.
</p>
<h2 id="DeleteGlobalRef">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=9623:9662#L307">DeleteGlobalRef</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#DeleteGlobalRef"></a>
</h2>
<pre>func DeleteGlobalRef(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>)</pre>
<p>
DeleteGlobalRef delets a global reference.
</p>
<h2 id="DeleteLocalRef">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=9931:9969#L317">DeleteLocalRef</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#DeleteLocalRef"></a>
</h2>
<pre>func DeleteLocalRef(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>)</pre>
<p>
DeleteLocalRef delets a local reference.
</p>
<h2 id="Do">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=1296:1340#L59">Do</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Do"></a>
</h2>
<pre>func Do(vm <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JVM">JVM</a>, f func(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>) <a href="http://localhost:6060/pkg/builtin/#error">error</a>) <a href="http://localhost:6060/pkg/builtin/#error">error</a></pre>
<p>
Do invokes a function with a temporary JVM environment. The
environment is not valid after the function returns.
</p>
<h2 id="GetBooleanField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=14476:14539#L449">GetBooleanField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetBooleanField"></a>
</h2>
<pre>func GetBooleanField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#bool">bool</a></pre>
<p>
GetBooleanField looks up the value of a static field of type boolean.
It panics if it is unable to find the field.
</p>
<h2 id="GetByteArrayElements">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=4691:4746#L149">GetByteArrayElements</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetByteArrayElements"></a>
</h2>
<pre>func GetByteArrayElements(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, jarr <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#ByteArray">ByteArray</a>) []<a href="http://localhost:6060/pkg/builtin/#byte">byte</a></pre>
<p>
GetByteArrayElements returns the contents of the array.
</p>
<h2 id="GetByteField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=14814:14874#L459">GetByteField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetByteField"></a>
</h2>
<pre>func GetByteField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#byte">byte</a></pre>
<p>
GetByteField looks up the value of a static field of type byte.
It panics if it is unable to find the field.
</p>
<h2 id="GetCharField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=15147:15207#L469">GetCharField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetCharField"></a>
</h2>
<pre>func GetCharField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#byte">byte</a></pre>
<p>
GetCharField looks up the value of a static field of type char.
It panics if it is unable to find the field.
</p>
<h2 id="GetDoubleField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=16832:16897#L519">GetDoubleField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetDoubleField"></a>
</h2>
<pre>func GetDoubleField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#float64">float64</a></pre>
<p>
GetDoubleField looks up the value of a static field of type double.
It panics if it is unable to find the field.
</p>
<h2 id="GetFloatField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=16487:16551#L509">GetFloatField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetFloatField"></a>
</h2>
<pre>func GetFloatField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#float32">float32</a></pre>
<p>
GetFloatField looks up the value of a static field of type float.
It panics if it is unable to find the field.
</p>
<h2 id="GetIntField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=15817:15877#L489">GetIntField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetIntField"></a>
</h2>
<pre>func GetIntField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#int32">int32</a></pre>
<p>
GetIntField looks up the value of a static field of type int.
It panics if it is unable to find the field.
</p>
<h2 id="GetLongField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=16150:16211#L499">GetLongField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetLongField"></a>
</h2>
<pre>func GetLongField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#int64">int64</a></pre>
<p>
GetLongField looks up the value of a static field of type long.
It panics if it is unable to find the field.
</p>
<h2 id="GetShortField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=15482:15544#L479">GetShortField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetShortField"></a>
</h2>
<pre>func GetShortField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#int16">int16</a></pre>
<p>
GetShortField looks up the value of a static field of type short.
It panics if it is unable to find the field.
</p>
<h2 id="GetStaticBooleanField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=11272:11342#L359">GetStaticBooleanField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticBooleanField"></a>
</h2>
<pre>func GetStaticBooleanField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#bool">bool</a></pre>
<p>
GetStaticBooleanField looks up the value of a static field of type boolean.
It panics if it is unable to find the field.
</p>
<h2 id="GetStaticByteField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=11630:11697#L369">GetStaticByteField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticByteField"></a>
</h2>
<pre>func GetStaticByteField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#byte">byte</a></pre>
<p>
GetStaticByteField looks up the value of a static field of type byte.
It panics if it is unable to find the field.
</p>
<h2 id="GetStaticCharField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=11983:12050#L379">GetStaticCharField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticCharField"></a>
</h2>
<pre>func GetStaticCharField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#byte">byte</a></pre>
<p>
GetStaticCharField looks up the value of a static field of type char.
It panics if it is unable to find the field.
</p>
<h2 id="GetStaticDoubleField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=13768:13840#L429">GetStaticDoubleField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticDoubleField"></a>
</h2>
<pre>func GetStaticDoubleField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#float64">float64</a></pre>
<p>
GetStaticDoubleField looks up the value of a static field of type double.
It panics if it is unable to find the field.
</p>
<h2 id="GetStaticFloatField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=13403:13474#L419">GetStaticFloatField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticFloatField"></a>
</h2>
<pre>func GetStaticFloatField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#float32">float32</a></pre>
<p>
GetStaticFloatField looks up the value of a static field of type float.
It panics if it is unable to find the field.
</p>
<h2 id="GetStaticIntField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=12693:12760#L399">GetStaticIntField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticIntField"></a>
</h2>
<pre>func GetStaticIntField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#int32">int32</a></pre>
<p>
GetStaticIntField looks up the value of a static field of type int.
It panics if it is unable to find the field.
</p>
<h2 id="GetStaticLongField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=13046:13114#L409">GetStaticLongField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticLongField"></a>
</h2>
<pre>func GetStaticLongField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#int64">int64</a></pre>
<p>
GetStaticLongField looks up the value of a static field of type long.
It panics if it is unable to find the field.
</p>
<h2 id="GetStaticShortField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=12338:12407#L389">GetStaticShortField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticShortField"></a>
</h2>
<pre>func GetStaticShortField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/builtin/#int16">int16</a></pre>
<p>
GetStaticShortField looks up the value of a static field of type short.
It panics if it is unable to find the field.
</p>
<h2 id="GoString">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=10364:10403#L332">GoString</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GoString"></a>
</h2>
<pre>func GoString(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, str <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#String">String</a>) <a href="http://localhost:6060/pkg/builtin/#string">string</a></pre>
<p>
GoString converts the JVM jstring to a Go string.
</p>
<h2 id="IsInstanceOf">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=7419:7471#L232">IsInstanceOf</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#IsInstanceOf"></a>
</h2>
<pre>func IsInstanceOf(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>) <a href="http://localhost:6060/pkg/builtin/#bool">bool</a></pre>
<p>
IsInstanceOf returns true if the given object is an instance of the
given class.
</p>
<h2 id="IsSameObject">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=2003:2051#L85">IsSameObject</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#IsSameObject"></a>
</h2>
<pre>func IsSameObject(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, ref1, ref2 <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>) <a href="http://localhost:6060/pkg/builtin/#bool">bool</a></pre>
<p>
IsSameObject returns true if the two given objects refer to the same
Java object.
</p>
<h2 id="ByteArray">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=650:672#L32">ByteArray</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#ByteArray"></a>
</h2>
<pre>type ByteArray <a href="http://localhost:6060/pkg/C/">C</a>.<a href="http://localhost:6060/pkg/C/#jbyteArray">jbyteArray</a></pre>
<h3 id="NewByteArray">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=5175:5225#L161">NewByteArray</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#NewByteArray"></a>
</h3>
<pre>func NewByteArray(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, content []<a href="http://localhost:6060/pkg/builtin/#byte">byte</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#ByteArray">ByteArray</a></pre>
<p>
NewByteArray allocates a Java byte array with the content. It
panics if the allocation fails.
</p>
<h2 id="Class">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=543:561#L27">Class</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class"></a>
</h2>
<pre>type Class <a href="http://localhost:6060/pkg/C/">C</a>.<a href="http://localhost:6060/pkg/C/#jclass">jclass</a></pre>
<h3 id="FindClass">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=2677:2717#L99">FindClass</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FindClass"></a>
</h3>
<pre>func FindClass(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, name <a href="http://localhost:6060/pkg/builtin/#string">string</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a></pre>
<p>
FindClass returns a reference to a Java class with a given name, using the
JVM's default class loader. Any exceptions caused by the underlying JNI call
(for example if the class is not found) will result in a panic.
</p>
<h3 id="GetObjectClass">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=7076:7120#L218">GetObjectClass</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetObjectClass"></a>
</h3>
<pre>func GetObjectClass(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a></pre>
<p>
GetObjectClass returns the Java Class for an Object.
</p>
<h3 id="LoadClass">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=6135:6200#L188">LoadClass</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#LoadClass"></a>
</h3>
<pre>func LoadClass(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, loader <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, class <a href="http://localhost:6060/pkg/builtin/#string">string</a>) (<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
LoadClass invokes the underlying ClassLoader's loadClass method and
returns the class.
</p>
<h2 id="Env">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=499:533#L22">Env</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env"></a>
</h2>
<pre>type Env struct {
<span class="comment">// contains filtered or unexported fields</span>
}
</pre>
<h3 id="EnvFor">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=1080:1111#L51">EnvFor</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#EnvFor"></a>
</h3>
<pre>func EnvFor(envPtr <a href="http://localhost:6060/pkg/builtin/#uintptr">uintptr</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a></pre>
<p>
EnvFor creates an Env object, interpreting the given uintptr as a pointer
to a C.JNIEnv object.
</p>
<h2 id="FieldID">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=607:627#L30">FieldID</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID"></a>
</h2>
<pre>type FieldID <a href="http://localhost:6060/pkg/C/">C</a>.<a href="http://localhost:6060/pkg/C/#jfieldID">jfieldID</a></pre>
<h3 id="GetFieldID">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=8229:8294#L261">GetFieldID</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetFieldID"></a>
</h3>
<pre>func GetFieldID(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, name, signature <a href="http://localhost:6060/pkg/builtin/#string">string</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a></pre>
<p>
GetFieldID returns the id for a field. It panics if the field wasn't found.
</p>
<h3 id="GetStaticFieldID">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=8656:8727#L275">GetStaticFieldID</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticFieldID"></a>
</h3>
<pre>func GetStaticFieldID(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, name, signature <a href="http://localhost:6060/pkg/builtin/#string">string</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a></pre>
<p>
GetStaticFieldID returns the id for a static field. It panics if the field
wasn't found.
</p>
<h2 id="JVM">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=463:497#L18">JVM</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JVM"></a>
</h2>
<pre>type JVM struct {
<span class="comment">// contains filtered or unexported fields</span>
}
</pre>
<h3 id="CreateJavaVM">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni_notandroid.go?s=434:471#L12">CreateJavaVM</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CreateJavaVM"></a>
</h3>
<pre>func CreateJavaVM(opts ...<a href="http://localhost:6060/pkg/builtin/#string">string</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JVM">JVM</a></pre>
<p>
CreateJavaVM creates a new Java VM with the options specified (if any).
This should not be called more than once as it can result in an error if
a JVM already exists for a given process.
</p>
<p>
This is not implemented on Android and is therefore excluded on that
platform by build flags and C.
</p>
<h3 id="JVMFor">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=881:912#L43">JVMFor</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JVMFor"></a>
</h3>
<pre>func JVMFor(jvmPtr <a href="http://localhost:6060/pkg/builtin/#uintptr">uintptr</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JVM">JVM</a></pre>
<p>
JVMFor creates a JVM object, interpreting the given uintptr as a pointer
to a C.JavaVM object.
</p>
<h2 id="MethodID">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=584:605#L29">MethodID</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID"></a>
</h2>
<pre>type MethodID <a href="http://localhost:6060/pkg/C/">C</a>.<a href="http://localhost:6060/pkg/C/#jmethodID">jmethodID</a></pre>
<h3 id="GetMethodID">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=9085:9152#L289">GetMethodID</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetMethodID"></a>
</h3>
<pre>func GetMethodID(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, name, signature <a href="http://localhost:6060/pkg/builtin/#string">string</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a></pre>
<p>
GetMethodID returns the id for a method. It panics if the method
wasn't found.
</p>
<h3 id="GetStaticMethodID">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=7802:7875#L248">GetStaticMethodID</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticMethodID"></a>
</h3>
<pre>func GetStaticMethodID(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, name, signature <a href="http://localhost:6060/pkg/builtin/#string">string</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a></pre>
<p>
GetStaticMethodID returns the id for a static method. It panics if the method
wasn't found.
</p>
<h2 id="Object">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=563:582#L28">Object</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object"></a>
</h2>
<pre>type Object <a href="http://localhost:6060/pkg/C/">C</a>.<a href="http://localhost:6060/pkg/C/#jobject">jobject</a></pre>
<h3 id="CallObjectMethod">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=4134:4222#L137">CallObjectMethod</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallObjectMethod"></a>
</h3>
<pre>func CallObjectMethod(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, method <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a>, args ...<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value">Value</a>) (<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
CallObjectMethod calls a method on an object, returning a Java object.
</p>
<h3 id="CallStaticObjectMethod">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=3830:3923#L131">CallStaticObjectMethod</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#CallStaticObjectMethod"></a>
</h3>
<pre>func CallStaticObjectMethod(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, method <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a>, args ...<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value">Value</a>) (<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
CallStaticObjectMethod calls a static method on a class, returning a
Java object
</p>
<h3 id="ClassLoaderFor">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=5702:5747#L175">ClassLoaderFor</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#ClassLoaderFor"></a>
</h3>
<pre>func ClassLoaderFor(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a></pre>
<p>
ClassLoader returns a reference to the Java ClassLoader associated
with obj.
</p>
<h3 id="GetObjectField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=14129:14193#L439">GetObjectField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetObjectField"></a>
</h3>
<pre>func GetObjectField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a></pre>
<p>
GetObjectField looks up the value of a static field of type Object.
It panics if it is unable to find the field.
</p>
<h3 id="GetStaticObjectField">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=10905:10976#L349">GetStaticObjectField</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#GetStaticObjectField"></a>
</h3>
<pre>func GetStaticObjectField(env <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, clazz <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, fieldID <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#FieldID">FieldID</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a></pre>
<p>
GetStaticObjectField looks up the value of a static field of type Object.
It panics if it is unable to find the field.
</p>
<h3 id="NewGlobalRef">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=9469:9512#L302">NewGlobalRef</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#NewGlobalRef"></a>
</h3>
<pre>func NewGlobalRef(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a></pre>
<p>
NewGlobalRef creates a new global reference.
</p>
<h3 id="NewLocalRef">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=9781:9823#L312">NewLocalRef</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#NewLocalRef"></a>
</h3>
<pre>func NewLocalRef(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, obj <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a></pre>
<p>
NewLocalRef creates a new local reference to the given object.
</p>
<h3 id="NewObject">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=3006:3086#L111">NewObject</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#NewObject"></a>
</h3>
<pre>func NewObject(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, cls <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Class">Class</a>, method <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#MethodID">MethodID</a>, args ...<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value">Value</a>) (<a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Object">Object</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
NewObject creates a new object given a class, initializer method, and
initializer arguments (if any).
</p>
<h2 id="String">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=629:648#L31">String</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#String"></a>
</h2>
<pre>type String <a href="http://localhost:6060/pkg/C/">C</a>.<a href="http://localhost:6060/pkg/C/#jstring">jstring</a></pre>
<h3 id="JavaString">func <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=10073:10114#L322">JavaString</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#JavaString"></a>
</h3>
<pre>func JavaString(e <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Env">Env</a>, str <a href="http://localhost:6060/pkg/builtin/#string">string</a>) <a href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#String">String</a></pre>
<p>
JavaString converts the string to a JVM jstring.
</p>
<h2 id="Value">type <a href="http://localhost:6060/src/git.wow.st/gmp/jni/jni.go?s=674:690#L33">Value</a>
<a class="permalink" href="http://localhost:6060/pkg/git.wow.st/gmp/jni/#Value"></a>
</h2>
<pre>type Value <a href="http://localhost:6060/pkg/builtin/#uint64">uint64</a> <span class="comment">// All JNI types fit into 64-bits.</span>
</pre>
<div id="footer">
Build version go1.14.1.<br>
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
the content of this page is licensed under the
Creative Commons Attribution 3.0 License,
and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
<a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
</div>
</div><!-- .container -->
</div><!-- #page -->
</body></html>