2
0
mirror of synced 2025-02-24 07:18:15 +00:00
mobile/bind/testdata/issue12403.go.golden

60 lines
1.5 KiB
Plaintext
Raw Normal View History

// 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 (
_seq "golang.org/x/mobile/bind/seq"
"issue12403"
)
const (
proxyParsable_Descriptor = "go.issue12403.Parsable"
proxyParsable_FromJSON_Code = 0x10a
proxyParsable_ToJSON_Code = 0x20a
)
func proxyParsable_FromJSON(out, in *_seq.Buffer) {
ref := in.ReadRef()
v := ref.Get().(issue12403.Parsable)
param_jstr := in.ReadString()
res := v.FromJSON(param_jstr)
out.WriteString(res)
}
func proxyParsable_ToJSON(out, in *_seq.Buffer) {
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() {
_seq.Register(proxyParsable_Descriptor, proxyParsable_FromJSON_Code, proxyParsable_FromJSON)
_seq.Register(proxyParsable_Descriptor, proxyParsable_ToJSON_Code, proxyParsable_ToJSON)
}
type proxyParsable _seq.Ref
func (p *proxyParsable) FromJSON(jstr string) string {
in := new(_seq.Buffer)
in.WriteString(jstr)
out := _seq.Transact((*_seq.Ref)(p), "go.issue12403.Parsable", proxyParsable_FromJSON_Code, in)
res_0 := out.ReadString()
return res_0
}
func (p *proxyParsable) ToJSON() (string, error) {
in := new(_seq.Buffer)
out := _seq.Transact((*_seq.Ref)(p), "go.issue12403.Parsable", proxyParsable_ToJSON_Code, in)
res_0 := out.ReadString()
res_1 := out.ReadError()
return res_0, res_1
}