Exemple #1
0
func init() {
	seq.EncString = func(out *seq.Buffer, v string) {
		out.WriteUTF8(v)
	}
	seq.DecString = func(in *seq.Buffer) string {
		return in.ReadUTF8()
	}
	seq.Transact = transact
	seq.FinalizeRef = finalizeRef

	C.init_seq()
}
Exemple #2
0
func init() {
	// TODO: seq.FinalizeRef, seq.Transact.

	seq.EncString = func(out *seq.Buffer, v string) {
		out.WriteUTF8(v)
	}
	seq.DecString = func(in *seq.Buffer) string {
		return in.ReadUTF8()
	}

	C.init_seq()
}
Exemple #3
0
func init() {
	app.JavaInit = func(javaVM uintptr) {
		C.init_seq(unsafe.Pointer(javaVM))
	}
}
Exemple #4
0
func initSeq() {
	vm := app.State.(interface {
		JavaVM() unsafe.Pointer
	}).JavaVM()
	C.init_seq(vm)
}