Home
last modified time | relevance | path

Searched refs:TextMarshaler (Results 1 – 2 of 2) sorted by relevance

/external/golang-protobuf/proto/
Dtext.go207 func (tm *TextMarshaler) writeProto3Any(w *textWriter, sv reflect.Value) (bool, error) {
253 func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
459 var textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
462 func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error {
525 text, err := v.Interface().(encoding.TextMarshaler).MarshalText()
681 func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error {
736 func (tm *TextMarshaler) writeExtension(w *textWriter, name string, pb interface{}) error {
771 type TextMarshaler struct { struct
778 func (tm *TextMarshaler) Marshal(w io.Writer, pb Message) error { argument
796 if etm, ok := pb.(encoding.TextMarshaler); ok {
[all …]
Dany_test.go46 expandedMarshaler = proto.TextMarshaler{ExpandAny: true}
47 expandedCompactMarshaler = proto.TextMarshaler{Compact: true, ExpandAny: true}