mobile/bind/testdata/structs.go.golden

63 lines
1.3 KiB
Plaintext

// Package go_structs is an autogenerated binder stub for package structs.
//
// File is generated by gobind. Do not edit.
package go_structs
import (
"code.google.com/p/go.mobile/bind/seq"
"structs"
)
const (
proxySDescriptor = "go.structs.S"
proxySXGetCode = 0x00f
proxySXSetCode = 0x01f
proxySYGetCode = 0x10f
proxySYSetCode = 0x11f
proxySSumCode = 0x00c
)
type proxyS seq.Ref
func proxySXSet(out, in *seq.Buffer) {
ref := in.ReadRef()
v := in.ReadFloat64()
ref.Get().(*structs.S).X = v
}
func proxySXGet(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(*structs.S).X
out.WriteFloat64(v)
}
func proxySYSet(out, in *seq.Buffer) {
ref := in.ReadRef()
v := in.ReadFloat64()
ref.Get().(*structs.S).Y = v
}
func proxySYGet(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(*structs.S).Y
out.WriteFloat64(v)
}
func proxySSum(out, in *seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(*structs.S)
res := v.Sum()
out.WriteFloat64(res)
}
func init() {
seq.Register(proxySDescriptor, proxySXSetCode, proxySXSet)
seq.Register(proxySDescriptor, proxySXGetCode, proxySXGet)
seq.Register(proxySDescriptor, proxySYSetCode, proxySYSet)
seq.Register(proxySDescriptor, proxySYGetCode, proxySYGet)
seq.Register(proxySDescriptor, proxySSumCode, proxySSum)
}
func init() {
}