64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
// Package go_structs is an autogenerated binder stub for package structs.
|
|
// gobind -lang=go structs
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
package go_structs
|
|
|
|
import (
|
|
"golang.org/x/mobile/bind/seq"
|
|
"structs"
|
|
)
|
|
|
|
const (
|
|
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
|
|
)
|
|
|
|
type proxyS seq.Ref
|
|
|
|
func proxyS_X_Set(out, in *seq.Buffer) {
|
|
ref := in.ReadRef()
|
|
v := in.ReadFloat64()
|
|
ref.Get().(*structs.S).X = v
|
|
}
|
|
|
|
func proxyS_X_Get(out, in *seq.Buffer) {
|
|
ref := in.ReadRef()
|
|
v := ref.Get().(*structs.S).X
|
|
out.WriteFloat64(v)
|
|
}
|
|
|
|
func proxyS_Y_Set(out, in *seq.Buffer) {
|
|
ref := in.ReadRef()
|
|
v := in.ReadFloat64()
|
|
ref.Get().(*structs.S).Y = v
|
|
}
|
|
|
|
func proxyS_Y_Get(out, in *seq.Buffer) {
|
|
ref := in.ReadRef()
|
|
v := ref.Get().(*structs.S).Y
|
|
out.WriteFloat64(v)
|
|
}
|
|
|
|
func proxyS_Sum(out, in *seq.Buffer) {
|
|
ref := in.ReadRef()
|
|
v := ref.Get().(*structs.S)
|
|
res := v.Sum()
|
|
out.WriteFloat64(res)
|
|
}
|
|
|
|
func init() {
|
|
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)
|
|
}
|
|
|
|
func init() {
|
|
}
|