This is to enable more flexible encoding/decoding of Go string. For Java, we use UTF16 to be compatible with java string. For other languages, we will want other way to represent a string. Change-Id: Iccd53e2eea18d37636c3c619d06cb473facef0cd Reviewed-on: https://go-review.googlesource.com/8628 Reviewed-by: David Crawshaw <crawshaw@golang.org>
52 lines
1.1 KiB
Plaintext
52 lines
1.1 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_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_ByteArrays)
|
|
seq.Register("basictypes", 2, proxy_Error)
|
|
seq.Register("basictypes", 3, proxy_ErrorPair)
|
|
seq.Register("basictypes", 4, proxy_Ints)
|
|
}
|