| OLD | NEW |
| (Empty) |
| 1 // Package go_structs is an autogenerated binder stub for package structs. | |
| 2 // gobind -lang=go structs | |
| 3 // | |
| 4 // File is generated by gobind. Do not edit. | |
| 5 package go_structs | |
| 6 | |
| 7 import ( | |
| 8 "golang.org/x/mobile/bind/seq" | |
| 9 "structs" | |
| 10 ) | |
| 11 | |
| 12 const ( | |
| 13 proxySDescriptor = "go.structs.S" | |
| 14 proxySXGetCode = 0x00f | |
| 15 proxySXSetCode = 0x01f | |
| 16 proxySYGetCode = 0x10f | |
| 17 proxySYSetCode = 0x11f | |
| 18 proxySSumCode = 0x00c | |
| 19 ) | |
| 20 | |
| 21 type proxyS seq.Ref | |
| 22 | |
| 23 func proxySXSet(out, in *seq.Buffer) { | |
| 24 ref := in.ReadRef() | |
| 25 v := in.ReadFloat64() | |
| 26 ref.Get().(*structs.S).X = v | |
| 27 } | |
| 28 | |
| 29 func proxySXGet(out, in *seq.Buffer) { | |
| 30 ref := in.ReadRef() | |
| 31 v := ref.Get().(*structs.S).X | |
| 32 out.WriteFloat64(v) | |
| 33 } | |
| 34 | |
| 35 func proxySYSet(out, in *seq.Buffer) { | |
| 36 ref := in.ReadRef() | |
| 37 v := in.ReadFloat64() | |
| 38 ref.Get().(*structs.S).Y = v | |
| 39 } | |
| 40 | |
| 41 func proxySYGet(out, in *seq.Buffer) { | |
| 42 ref := in.ReadRef() | |
| 43 v := ref.Get().(*structs.S).Y | |
| 44 out.WriteFloat64(v) | |
| 45 } | |
| 46 | |
| 47 func proxySSum(out, in *seq.Buffer) { | |
| 48 ref := in.ReadRef() | |
| 49 v := ref.Get().(*structs.S) | |
| 50 res := v.Sum() | |
| 51 out.WriteFloat64(res) | |
| 52 } | |
| 53 | |
| 54 func init() { | |
| 55 seq.Register(proxySDescriptor, proxySXSetCode, proxySXSet) | |
| 56 seq.Register(proxySDescriptor, proxySXGetCode, proxySXGet) | |
| 57 seq.Register(proxySDescriptor, proxySYSetCode, proxySYSet) | |
| 58 seq.Register(proxySDescriptor, proxySYGetCode, proxySYGet) | |
| 59 seq.Register(proxySDescriptor, proxySSumCode, proxySSum) | |
| 60 } | |
| 61 | |
| 62 func init() { | |
| 63 } | |
| OLD | NEW |