2015-08-31 01:06:30 -04:00
|
|
|
// Package go_issue12403 is an autogenerated binder stub for package issue12403.
|
|
|
|
// gobind -lang=go issue12403
|
|
|
|
//
|
|
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
package go_issue12403
|
|
|
|
|
|
|
|
import (
|
2016-02-18 06:27:33 -05:00
|
|
|
_seq "golang.org/x/mobile/bind/seq"
|
2015-08-31 01:06:30 -04:00
|
|
|
"issue12403"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
proxyParsable_Descriptor = "go.issue12403.Parsable"
|
|
|
|
proxyParsable_FromJSON_Code = 0x10a
|
|
|
|
proxyParsable_ToJSON_Code = 0x20a
|
|
|
|
)
|
|
|
|
|
2016-02-18 06:27:33 -05:00
|
|
|
func proxyParsable_FromJSON(out, in *_seq.Buffer) {
|
2015-08-31 01:06:30 -04:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(issue12403.Parsable)
|
|
|
|
param_jstr := in.ReadString()
|
|
|
|
res := v.FromJSON(param_jstr)
|
|
|
|
out.WriteString(res)
|
|
|
|
}
|
|
|
|
|
2016-02-18 06:27:33 -05:00
|
|
|
func proxyParsable_ToJSON(out, in *_seq.Buffer) {
|
2015-08-31 01:06:30 -04:00
|
|
|
ref := in.ReadRef()
|
|
|
|
v := ref.Get().(issue12403.Parsable)
|
|
|
|
res, err := v.ToJSON()
|
|
|
|
out.WriteString(res)
|
|
|
|
if err == nil {
|
|
|
|
out.WriteString("")
|
|
|
|
} else {
|
|
|
|
out.WriteString(err.Error())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2016-02-18 06:27:33 -05:00
|
|
|
_seq.Register(proxyParsable_Descriptor, proxyParsable_FromJSON_Code, proxyParsable_FromJSON)
|
|
|
|
_seq.Register(proxyParsable_Descriptor, proxyParsable_ToJSON_Code, proxyParsable_ToJSON)
|
2015-08-31 01:06:30 -04:00
|
|
|
}
|
|
|
|
|
2016-02-18 06:27:33 -05:00
|
|
|
type proxyParsable _seq.Ref
|
2015-08-31 01:06:30 -04:00
|
|
|
|
|
|
|
func (p *proxyParsable) FromJSON(jstr string) string {
|
2016-02-18 06:27:33 -05:00
|
|
|
in := new(_seq.Buffer)
|
2015-08-31 01:06:30 -04:00
|
|
|
in.WriteString(jstr)
|
2016-02-18 06:27:33 -05:00
|
|
|
out := _seq.Transact((*_seq.Ref)(p), "go.issue12403.Parsable", proxyParsable_FromJSON_Code, in)
|
2015-08-31 01:06:30 -04:00
|
|
|
res_0 := out.ReadString()
|
|
|
|
return res_0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *proxyParsable) ToJSON() (string, error) {
|
2016-02-18 06:27:33 -05:00
|
|
|
in := new(_seq.Buffer)
|
|
|
|
out := _seq.Transact((*_seq.Ref)(p), "go.issue12403.Parsable", proxyParsable_ToJSON_Code, in)
|
2015-08-31 01:06:30 -04:00
|
|
|
res_0 := out.ReadString()
|
|
|
|
res_1 := out.ReadError()
|
|
|
|
return res_0, res_1
|
|
|
|
}
|