MCPcopy Create free account
hub / github.com/golang/mobile / genRelease

Method genRelease

bind/genjava.go:1245–1253  ·  view source on GitHub ↗

genRelease cleans up arguments that weren't copied in genJavaToC.

(varName string, t types.Type, mode varMode)

Source from the content-addressed store, hash-verified

1243
1244// genRelease cleans up arguments that weren't copied in genJavaToC.
1245func (g *JavaGen) genRelease(varName string, t types.Type, mode varMode) {
1246 switch t := types.Unalias(t).(type) {
1247 case *types.Basic:
1248 case *types.Slice:
1249 if isBytesSlice(t) && mode == modeTransient {
1250 g.Printf("go_seq_release_byte_array(env, %s, _%s.ptr);\n", varName, varName)
1251 }
1252 }
1253}
1254
1255func (g *JavaGen) genMethodInterfaceProxy(oName string, m *types.Func) {
1256 if !g.isSigSupported(m.Type()) {

Callers 4

genJNIFieldMethod · 0.95
genJNIVarMethod · 0.95
genJNIConstructorMethod · 0.95
genJNIFuncBodyMethod · 0.95

Calls 2

isBytesSliceFunction · 0.85
PrintfMethod · 0.80

Tested by

no test coverage detected