2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/bind/testdata/basictypes.go.golden
David Crawshaw 9f144f9410 go.mobile/bind: language binding generator
Details: http://golang.org/s/gobind

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/118240044
2014-07-31 15:09:13 -04:00

44 lines
939 B
Plaintext

// Package go_basictypes is an autogenerated binder stub for package basictypes.
//
// File is generated by gobind. Do not edit.
package go_basictypes
import (
"basictypes"
"code.google.com/p/go.mobile/bind/seq"
)
func proxy_Error(out, in *seq.Buffer) {
err := basictypes.Error()
if err == nil {
out.WriteUTF16("")
} else {
out.WriteUTF16(err.Error())
}
}
func proxy_ErrorPair(out, in *seq.Buffer) {
res, err := basictypes.ErrorPair()
out.WriteInt(res)
if err == nil {
out.WriteUTF16("")
} else {
out.WriteUTF16(err.Error())
}
}
func proxy_Ints(out, in *seq.Buffer) {
param_x := in.ReadInt8()
param_y := in.ReadInt16()
param_z := in.ReadInt32()
param_t := in.ReadInt64()
param_u := in.ReadInt()
basictypes.Ints(param_x, param_y, param_z, param_t, param_u)
}
func init() {
seq.Register("basictypes", 1, proxy_Error)
seq.Register("basictypes", 2, proxy_ErrorPair)
seq.Register("basictypes", 3, proxy_Ints)
}