Home
last modified time | relevance | path

Searched refs:MarshalOptions (Results 1 – 25 of 39) sorted by relevance

12

/external/golang-protobuf/encoding/protojson/
Dencode_test.go38 mo protojson.MarshalOptions
752 mo: protojson.MarshalOptions{AllowPartial: true},
796 mo: protojson.MarshalOptions{AllowPartial: true},
824 mo: protojson.MarshalOptions{AllowPartial: true},
856 mo: protojson.MarshalOptions{AllowPartial: true},
880 mo: protojson.MarshalOptions{AllowPartial: true},
1564 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
1588 mo: protojson.MarshalOptions{Resolver: new(protoregistry.Types)},
1597 b, err := proto.MarshalOptions{
1615 mo: protojson.MarshalOptions{
[all …]
Dencode.go31 return MarshalOptions{Multiline: true}.Format(m)
38 return MarshalOptions{}.Marshal(m)
42 type MarshalOptions struct { struct
96 func (o MarshalOptions) Format(m proto.Message) string { argument
108 func (o MarshalOptions) Marshal(m proto.Message) ([]byte, error) { argument
115 func (o MarshalOptions) marshal(m proto.Message) ([]byte, error) { argument
146 opts MarshalOptions
Ddecode_test.go1971 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
2002 b, err := proto.MarshalOptions{
2028 b, err := proto.MarshalOptions{
2057 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
2100 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
2134 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
2160 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
2200 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
/external/golang-protobuf/proto/
Dsize.go16 return MarshalOptions{}.Size(m)
20 func (o MarshalOptions) Size(m Message) int {
32 func (o MarshalOptions) size(m protoreflect.Message) (size int) {
51 func (o MarshalOptions) sizeMessageSlow(m protoreflect.Message) (size int) {
63 func (o MarshalOptions) sizeField(fd protoreflect.FieldDescriptor, value protoreflect.Value) (size …
75 func (o MarshalOptions) sizeList(num protowire.Number, fd protoreflect.FieldDescriptor, list protor…
90 func (o MarshalOptions) sizeMap(num protowire.Number, fd protoreflect.FieldDescriptor, mapv protore…
Dencode.go21 type MarshalOptions struct { struct
80 out, err := MarshalOptions{}.marshal(nil, m.ProtoReflect())
88 func (o MarshalOptions) Marshal(m Message) ([]byte, error) { argument
119 func (o MarshalOptions) MarshalAppend(b []byte, m Message) ([]byte, error) { argument
133 func (o MarshalOptions) MarshalState(in protoiface.MarshalInput) (protoiface.MarshalOutput, error) { argument
140 func (o MarshalOptions) marshal(b []byte, m protoreflect.Message) (out protoiface.MarshalOutput, er… argument
179 func (o MarshalOptions) marshalMessage(b []byte, m protoreflect.Message) ([]byte, error) { argument
210 func (o MarshalOptions) marshalMessageSlow(b []byte, m protoreflect.Message) ([]byte, error) { argument
233 func (o MarshalOptions) marshalField(b []byte, fd protoreflect.FieldDescriptor, value protoreflect.… argument
245 func (o MarshalOptions) marshalList(b []byte, fd protoreflect.FieldDescriptor, list protoreflect.Li… argument
[all …]
Dencode_test.go31 opts := proto.MarshalOptions{
64 opts := proto.MarshalOptions{
115 got, err := proto.MarshalOptions{}.MarshalAppend(got, &test3pb.TestAllTypes{
133 opts := proto.MarshalOptions{
166 _, err := proto.MarshalOptions{}.MarshalAppend(b[:0], m)
174 b, err = proto.MarshalOptions{}.MarshalAppend(b, m)
213 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
270 b, err = proto.MarshalOptions{}.Marshal(m)
Dmessageset.go17 func (o MarshalOptions) sizeMessageSet(m protoreflect.Message) (size int) {
28 func (o MarshalOptions) marshalMessageSet(b []byte, m protoreflect.Message) ([]byte, error) {
47 func (o MarshalOptions) marshalMessageSetField(b []byte, fd protoreflect.FieldDescriptor, value pro…
Dmethods_test.go61 b, err = proto.MarshalOptions{}.MarshalAppend(prefix, m)
66 b, err = proto.MarshalOptions{
Dbench_test.go28 opts := proto.MarshalOptions{AllowPartial: *allowPartial}
Dsize_gen.go14 func (o MarshalOptions) sizeSingular(num protowire.Number, kind protoreflect.Kind, v protoreflect.V…
/external/golang-protobuf/encoding/protodelim/
Dprotodelim.go19 type MarshalOptions struct{ proto.MarshalOptions } struct
23 func (o MarshalOptions) MarshalTo(w io.Writer, m proto.Message) (int, error) { argument
24 msgBytes, err := o.MarshalOptions.Marshal(m)
46 return MarshalOptions{}.MarshalTo(w, m)
/external/golang-protobuf/encoding/prototext/
Dencode_test.go33 mo prototext.MarshalOptions
773 mo: prototext.MarshalOptions{AllowPartial: true},
813 mo: prototext.MarshalOptions{AllowPartial: true},
835 mo: prototext.MarshalOptions{AllowPartial: true},
863 mo: prototext.MarshalOptions{AllowPartial: true},
885 mo: prototext.MarshalOptions{AllowPartial: true},
910 mo: prototext.MarshalOptions{EmitUnknown: true},
931 mo: prototext.MarshalOptions{EmitUnknown: true},
947 mo: prototext.MarshalOptions{EmitUnknown: true},
967 mo: prototext.MarshalOptions{EmitUnknown: true},
[all …]
Dencode.go33 return MarshalOptions{Multiline: true}.Format(m)
40 return MarshalOptions{}.Marshal(m)
44 type MarshalOptions struct { struct
89 func (o MarshalOptions) Format(m proto.Message) string { argument
103 func (o MarshalOptions) Marshal(m proto.Message) ([]byte, error) { argument
110 func (o MarshalOptions) marshal(m proto.Message) ([]byte, error) { argument
148 opts MarshalOptions
Dother_test.go160 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
180 b, err := proto.MarshalOptions{Deterministic: true}.Marshal(m)
197 b1, err := proto.MarshalOptions{Deterministic: true}.Marshal(m1)
205 b2, err := proto.MarshalOptions{Deterministic: true}.Marshal(m2)
222 b, err := prototext.MarshalOptions{Resolver: tt.resolver}.Marshal(tt.message)
/external/golang-protobuf/encoding/
Dbench_test.go130 _, err := prototext.MarshalOptions{Indent: " "}.Marshal(m)
139 in, err := prototext.MarshalOptions{Indent: " "}.Marshal(m)
155 _, err := protojson.MarshalOptions{Indent: " "}.Marshal(m)
164 out, err := protojson.MarshalOptions{Indent: " "}.Marshal(m)
/external/golang-protobuf/testing/protocmp/
Dreflect_test.go137 b1, _ := proto.MarshalOptions{Deterministic: true}.Marshal(optMsg)
138 b2, _ := proto.MarshalOptions{Deterministic: true}.Marshal(repMsg)
139 b3, _ := proto.MarshalOptions{Deterministic: true}.Marshal(mapMsg)
/external/starlark-go/lib/proto/cmd/star2proto/
Dstar2proto.go122 marshal = prototext.MarshalOptions{Multiline: true, Indent: "\t"}.Marshal
125 marshal = protojson.MarshalOptions{Multiline: true, Indent: "\t"}.Marshal
/external/golang-protobuf/internal/fuzz/textfuzz/
Dfuzz.go23 data1, err := prototext.MarshalOptions{
/external/golang-protobuf/internal/fuzz/jsonfuzz/
Dfuzz.go23 data1, err := protojson.MarshalOptions{
/external/golang-protobuf/types/known/anypb/
Dany.pb.go262 func MarshalFrom(dst *Any, src proto.Message, opts proto.MarshalOptions) error { argument
351 return MarshalFrom(x, m, proto.MarshalOptions{})
/external/golang-protobuf/internal/impl/
Dencode.go21 func (o marshalOptions) Options() proto.MarshalOptions {
22 return proto.MarshalOptions{
/external/golang-protobuf/internal/msgfmt/
Dformat_test.go169 b1, _ := proto.MarshalOptions{Deterministic: true}.Marshal(optMsg)
170 b2, _ := proto.MarshalOptions{Deterministic: true}.Marshal(repMsg)
171 b3, _ := proto.MarshalOptions{Deterministic: true}.Marshal(mapMsg)
/external/golang-protobuf/reflect/protorange/
Drange.go203 b1, errMarshal := proto.MarshalOptions{
224 b2, errMarshal := proto.MarshalOptions{
/external/golang-protobuf/internal/fuzz/wirefuzz/
Dfuzz.go71 data1, err := proto.MarshalOptions{AllowPartial: !checkInit}.Marshal(m1)
/external/golang-protobuf/internal/cmd/generate-types/
Dproto.go375 func (o MarshalOptions) marshalSingular(b []byte, fd protoreflect.FieldDescriptor, v protoreflect.V…
416 func (o MarshalOptions) sizeSingular(num protowire.Number, kind protoreflect.Kind, v protoreflect.V…

12