2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/bind/testdata/basictypes.go.golden
Hyang-Ah (Hana) Kim 6d80e5a85f bind: support Bool types.
Also add missing int8/int16 handling in bind/seq.

Fixes golang/go#10855.

Change-Id: I326ada44df10fc3c22628bdd2ae4ee2c3dc7902e
Reviewed-on: https://go-review.googlesource.com/10046
Reviewed-by: Alan Donovan <adonovan@google.com>
2015-05-14 22:17:57 +00:00

59 lines
1.3 KiB
Plaintext

// Package go_basictypes is an autogenerated binder stub for package basictypes.
// gobind -lang=go basictypes
//
// File is generated by gobind. Do not edit.
package go_basictypes
import (
"basictypes"
"golang.org/x/mobile/bind/seq"
)
func proxy_Bool(out, in *seq.Buffer) {
param_p0 := in.ReadBool()
res := basictypes.Bool(param_p0)
out.WriteBool(res)
}
func proxy_ByteArrays(out, in *seq.Buffer) {
param_x := in.ReadByteArray()
res := basictypes.ByteArrays(param_x)
out.WriteByteArray(res)
}
func proxy_Error(out, in *seq.Buffer) {
err := basictypes.Error()
if err == nil {
out.WriteString("")
} else {
out.WriteString(err.Error())
}
}
func proxy_ErrorPair(out, in *seq.Buffer) {
res, err := basictypes.ErrorPair()
out.WriteInt(res)
if err == nil {
out.WriteString("")
} else {
out.WriteString(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_Bool)
seq.Register("basictypes", 2, proxy_ByteArrays)
seq.Register("basictypes", 3, proxy_Error)
seq.Register("basictypes", 4, proxy_ErrorPair)
seq.Register("basictypes", 5, proxy_Ints)
}