2014-07-31 19:09:13 +00:00
|
|
|
// Package go_structs is an autogenerated binder stub for package structs.
|
2014-11-10 18:46:47 +00:00
|
|
|
// gobind -lang=go structs
|
2014-07-31 19:09:13 +00:00
|
|
|
//
|
|
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
package go_structs
|
|
|
|
|
|
|
|
import (
|
2014-11-10 18:46:47 +00:00
|
|
|
"golang.org/x/mobile/bind/seq"
|
2014-07-31 19:09:13 +00:00
|
|
|
"structs"
|
|
|
|
)
|
|
|
|
|
2015-06-05 19:24:08 +00:00
|
|
|
func proxy_Identity(out, in *seq.Buffer) {
|
|
|
|
// Must be a Go object
|
|
|
|
param_s_ref := in.ReadRef()
|
|
|
|
param_s := param_s_ref.Get().(*structs.S)
|
|
|
|
res := structs.Identity(param_s)
|
|
|
|
out.WriteGoRef(res)
|
|
|
|
}
|
|
|
|
|
2015-06-10 00:36:16 +00:00
|
|
|
func proxy_IdentityWithError(out, in *seq.Buffer) {
|
|
|
|
// Must be a Go object
|
|
|
|
param_s_ref := in.ReadRef()
|
|
|
|
param_s := param_s_ref.Get().(*structs.S)
|
|
|
|
res, err := structs.IdentityWithError(param_s)
|
|
|
|
out.WriteGoRef(res)
|
|
|
|
if err == nil {
|
|
|
|
out.WriteString("")
|
|
|
|
} else {
|
|
|
|
out.WriteString(err.Error())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-31 19:09:13 +00:00
|
|
|
const (
|
2015-05-29 19:49:54 +00:00
|
|
|
proxyS_Descriptor = "go.structs.S"
|
|
|
|
proxyS_X_Get_Code = 0x00f
|
|
|
|
proxyS_X_Set_Code = 0x01f
|
|
|
|
proxyS_Y_Get_Code = 0x10f
|
|
|
|
proxyS_Y_Set_Code = 0x11f
|
|
|
|
proxyS_Sum_Code = 0x00c
|
2014-07-31 19:09:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type proxyS seq.Ref
|
|
|
|
|
2015-05-29 19:49:54 +00:00
|
|
|
func proxyS_X_Set(out, in *seq.Buffer) {
|
2014-07-31 19:09:13 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := in.ReadFloat64()
|
|
|
|
ref.Get().(*structs.S).X = v
|
|
|
|
}
|
|
|
|
|
2015-05-29 19:49:54 +00:00
|
|
|
func proxyS_X_Get(out, in *seq.Buffer) {
|
2014-07-31 19:09:13 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(*structs.S).X
|
|
|
|
out.WriteFloat64(v)
|
|
|
|
}
|
|
|
|
|
2015-05-29 19:49:54 +00:00
|
|
|
func proxyS_Y_Set(out, in *seq.Buffer) {
|
2014-07-31 19:09:13 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := in.ReadFloat64()
|
|
|
|
ref.Get().(*structs.S).Y = v
|
|
|
|
}
|
|
|
|
|
2015-05-29 19:49:54 +00:00
|
|
|
func proxyS_Y_Get(out, in *seq.Buffer) {
|
2014-07-31 19:09:13 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(*structs.S).Y
|
|
|
|
out.WriteFloat64(v)
|
|
|
|
}
|
|
|
|
|
2015-05-29 19:49:54 +00:00
|
|
|
func proxyS_Sum(out, in *seq.Buffer) {
|
2014-07-31 19:09:13 +00:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(*structs.S)
|
|
|
|
res := v.Sum()
|
|
|
|
out.WriteFloat64(res)
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2015-05-29 19:49:54 +00:00
|
|
|
seq.Register(proxyS_Descriptor, proxyS_X_Set_Code, proxyS_X_Set)
|
|
|
|
seq.Register(proxyS_Descriptor, proxyS_X_Get_Code, proxyS_X_Get)
|
|
|
|
seq.Register(proxyS_Descriptor, proxyS_Y_Set_Code, proxyS_Y_Set)
|
|
|
|
seq.Register(proxyS_Descriptor, proxyS_Y_Get_Code, proxyS_Y_Get)
|
|
|
|
seq.Register(proxyS_Descriptor, proxyS_Sum_Code, proxyS_Sum)
|
2014-07-31 19:09:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2015-06-05 19:24:08 +00:00
|
|
|
seq.Register("structs", 1, proxy_Identity)
|
2015-06-10 00:36:16 +00:00
|
|
|
seq.Register("structs", 2, proxy_IdentityWithError)
|
2014-07-31 19:09:13 +00:00
|
|
|
}
|