Created
January 2, 2015 03:49
-
-
Save ChrisSmith/95e149597df2b88a5cde to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Package go_hi is an autogenerated binder stub for package hi. | |
// gobind -lang=go golang.org/x/mobile/example/libhello/hi | |
// | |
// File is generated by gobind. Do not edit. | |
package go_hi | |
import ( | |
"golang.org/x/mobile/bind/seq" | |
"golang.org/x/mobile/example/libhello/hi" | |
) | |
const ( | |
proxyIStringStructDescriptor = "go.hi.IStringStruct" | |
proxyIStringStructGetItCode = 0x10a | |
) | |
type proxyIStringStruct seq.Ref | |
func (p *proxyIStringStruct) GetIt() (res_0 *golang.org/x/mobile/example/libhello/hi.StringStruct) { | |
out := new(seq.Buffer) | |
seq.Transact((*seq.Ref)(p), proxyIStringStructGetItCode, out) | |
} | |
const ( | |
proxyStringStructDescriptor = "go.hi.StringStruct" | |
proxyStringStructNameGetCode = 0x00f | |
proxyStringStructNameSetCode = 0x01f | |
proxyStringStructGetItCode = 0x00c | |
) | |
type proxyStringStruct seq.Ref | |
func proxyStringStructNameSet(out, in *seq.Buffer) { | |
ref := in.ReadRef() | |
v := in.ReadUTF16() | |
ref.Get().(*hi.StringStruct).Name = v | |
} | |
func proxyStringStructNameGet(out, in *seq.Buffer) { | |
ref := in.ReadRef() | |
v := ref.Get().(*hi.StringStruct).Name | |
out.WriteUTF16(v) | |
} | |
func proxyStringStructGetIt(out, in *seq.Buffer) { | |
ref := in.ReadRef() | |
v := ref.Get().(*hi.StringStruct) | |
res := v.GetIt() | |
out.WriteGoRef(res) | |
} | |
func init() { | |
seq.Register(proxyStringStructDescriptor, proxyStringStructNameSetCode, proxyStringStructNameSet) | |
seq.Register(proxyStringStructDescriptor, proxyStringStructNameGetCode, proxyStringStructNameGet) | |
seq.Register(proxyStringStructDescriptor, proxyStringStructGetItCode, proxyStringStructGetIt) | |
} | |
func init() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment