Home
last modified time | relevance | path

Searched refs:ParseFrom (Results 1 – 25 of 37) sorted by relevance

12

/external/protobuf/csharp/src/Google.Protobuf/
DMessageParser.cs65 public IMessage ParseFrom(byte[] data) in ParseFrom() method in Google.Protobuf.MessageParser
78 public IMessage ParseFrom(ByteString data) in ParseFrom() method in Google.Protobuf.MessageParser
91 public IMessage ParseFrom(Stream input) in ParseFrom() method in Google.Protobuf.MessageParser
119 public IMessage ParseFrom(CodedInputStream input) in ParseFrom() method in Google.Protobuf.MessageParser
192 public new T ParseFrom(byte[] data) in ParseFrom() method in Google.Protobuf.MessageParser
205 public new T ParseFrom(ByteString data) in ParseFrom() method in Google.Protobuf.MessageParser
218 public new T ParseFrom(Stream input) in ParseFrom() method in Google.Protobuf.MessageParser
246 public new T ParseFrom(CodedInputStream input) in ParseFrom() method in Google.Protobuf.MessageParser
/external/protobuf/csharp/src/Google.Protobuf.Test/
DGeneratedMessageTest.cs133 TestAllTypes parsed = TestAllTypes.Parser.ParseFrom(bytes); in RoundTrip_Empty()
167 TestAllTypes parsed = TestAllTypes.Parser.ParseFrom(bytes); in RoundTrip_SingleValues()
201 TestAllTypes parsed = TestAllTypes.Parser.ParseFrom(bytes); in RoundTrip_RepeatedValues()
233 TestMap parsed = TestMap.Parser.ParseFrom(bytes); in RoundTrip_Maps()
248 var parsed = TestMap.Parser.ParseFrom(bytes); in MapWithEmptyEntry()
267 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyValue()
284 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyKey_PrimitiveValue()
301 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyKey_MessageValue()
329 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapIgnoresExtraFieldsWithinEntryMessages()
353 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapFieldOrderIsIrrelevant()
[all …]
DCodedInputStreamTest.cs236 TestAllTypes message2 = TestAllTypes.Parser.ParseFrom(rawBytes); in ReadWholeMessage_VaryingBlockSizes()
242 … message2 = TestAllTypes.Parser.ParseFrom(new SmallBlockInputStream(rawBytes, blockSize)); in ReadWholeMessage_VaryingBlockSizes()
263 TestAllTypes message2 = TestAllTypes.Parser.ParseFrom(message.ToByteString()); in ReadHugeBlob()
319 AssertMessageDepth(TestRecursiveMessage.Parser.ParseFrom(data64), 64); in MaliciousRecursion()
321 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(data65)); in MaliciousRecursion()
324 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
334 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
DTestCornerCases.cs58 NegativeEnumMessage copy = NegativeEnumMessage.Parser.ParseFrom(bytes); in TestRoundTripNegativeEnums()
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DWorkerServiceGrpc.cs32 …gle.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ServerArgs.Parser.ParseFrom);
33 …e.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ServerStatus.Parser.ParseFrom);
34 …gle.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ClientArgs.Parser.ParseFrom);
35 …e.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ClientStatus.Parser.ParseFrom);
36 …le.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.CoreRequest.Parser.ParseFrom);
37 …e.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.CoreResponse.Parser.ParseFrom);
38 …l::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Void.Parser.ParseFrom);
DTestGrpc.cs37 …::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom);
38 ….Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.SimpleRequest.Parser.ParseFrom);
39 …Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.SimpleResponse.Parser.ParseFrom);
40 …sageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingOutputCallRequest.Parser.ParseFrom);
41 …ageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingOutputCallResponse.Parser.ParseFrom);
42 …ssageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingInputCallRequest.Parser.ParseFrom);
43 …sageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingInputCallResponse.Parser.ParseFrom);
551 …::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom);
672 …rotobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ReconnectParams.Parser.ParseFrom);
673 …::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom);
[all …]
DMetricsGrpc.cs36 …e.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.EmptyMessage.Parser.ParseFrom);
37 ….Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.GaugeResponse.Parser.ParseFrom);
38 …e.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.GaugeRequest.Parser.ParseFrom);
DReportQpsScenarioServiceGrpc.cs32 …Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ScenarioResult.Parser.ParseFrom);
33 …l::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Void.Parser.ParseFrom);
/external/grpc-grpc/examples/csharp/RouteGuide/RouteGuide/
DRouteGuideGrpc.cs33 …al::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Routeguide.Point.Parser.ParseFrom);
34 …::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Routeguide.Feature.Parser.ParseFrom);
35 …Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Routeguide.Rectangle.Parser.ParseFrom);
36 …gle.Protobuf.MessageExtensions.ToByteArray(arg), global::Routeguide.RouteSummary.Parser.ParseFrom);
37 …Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Routeguide.RouteNote.Parser.ParseFrom);
/external/protobuf/csharp/src/AddressBook/
DSampleUsage.cs57 Person copy = Person.Parser.ParseFrom(bytes); in Main()
65 AddressBook restored = AddressBook.Parser.ParseFrom(bytes); in Main()
DListPeople.cs93 AddressBook addressBook = AddressBook.Parser.ParseFrom(stream); in Main()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs75 var parsed = TestWellKnownTypes.Parser.ParseFrom(bytes); in NonDefaultSingleValues()
105 var parsed = TestWellKnownTypes.Parser.ParseFrom(bytes); in NonNullDefaultIsPreservedThroughSerialization()
144 var parsed = RepeatedWellKnownTypes.Parser.ParseFrom(bytes); in RepeatedWrappersSerializeDeserialize()
198 var parsed = MapWellKnownTypes.Parser.ParseFrom(bytes); in MapWrappersSerializeDeserialize()
292 var parsed = OneofWellKnownTypes.Parser.ParseFrom(bytes); in AssertOneofRoundTrip()
407 var message = TestWellKnownTypes.Parser.ParseFrom(stream); in UnknownFieldInWrapper()
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dtransport_feedback.cc148 static OneBitVectorChunk* ParseFrom(const uint8_t* data) { in ParseFrom() function in webrtc::rtcp::OneBitVectorChunk
215 static TwoBitVectorChunk* ParseFrom(const uint8_t* buffer) { in ParseFrom() function in webrtc::rtcp::TwoBitVectorChunk
269 static RunLengthChunk* ParseFrom(const uint8_t* buffer) { in ParseFrom() function in webrtc::rtcp::RunLengthChunk
654 rtc::scoped_ptr<TransportFeedback> TransportFeedback::ParseFrom( in ParseFrom() function in webrtc::rtcp::TransportFeedback
756 return TwoBitVectorChunk::ParseFrom(buffer); in ParseChunk()
760 return OneBitVectorChunk::ParseFrom(buffer); in ParseChunk()
764 RunLengthChunk* rle_chunk = RunLengthChunk::ParseFrom(buffer); in ParseChunk()
Dtransport_feedback_unittest.cc76 feedback_ = TransportFeedback::ParseFrom(serialized_->Buffer(), in VerifyPacket()
402 TransportFeedback::ParseFrom(raw_packet->Buffer(), raw_packet->Length()); in TEST()
413 TransportFeedback::ParseFrom(raw_packet->Buffer(), raw_packet->Length()); in TEST()
452 TransportFeedback::ParseFrom(mod_buffer, kExpectedSizeWithPadding)); in TEST()
475 TransportFeedback::ParseFrom(serialized_packet->Buffer(), in TEST()
/external/grpc-grpc/src/csharp/Grpc.Examples/
DMathGrpc.cs30 …global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Math.DivArgs.Parser.ParseFrom);
31 …lobal::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Math.DivReply.Parser.ParseFrom);
32 …global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Math.FibArgs.Parser.ParseFrom);
33 … => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Math.Num.Parser.ParseFrom);
/external/protobuf/csharp/src/Google.Protobuf.Conformance/
DProgram.cs73 ConformanceRequest request = ConformanceRequest.Parser.ParseFrom(inputData); in RunTest()
94 message = TestAllTypes.Parser.ParseFrom(request.ProtobufPayload); in PerformRequest()
/external/grpc-grpc/src/csharp/Grpc.Reflection/
DReflectionGrpc.cs32 …nsions.ToByteArray(arg), global::Grpc.Reflection.V1Alpha.ServerReflectionRequest.Parser.ParseFrom);
33 …sions.ToByteArray(arg), global::Grpc.Reflection.V1Alpha.ServerReflectionResponse.Parser.ParseFrom);
/external/grpc-grpc/examples/csharp/HelloworldLegacyCsproj/Greeter/
DHelloworldGrpc.cs33 …gle.Protobuf.MessageExtensions.ToByteArray(arg), global::Helloworld.HelloRequest.Parser.ParseFrom);
34 …oogle.Protobuf.MessageExtensions.ToByteArray(arg), global::Helloworld.HelloReply.Parser.ParseFrom);
/external/grpc-grpc/examples/csharp/HelloworldXamarin/HelloworldXamarin/
DHelloworldGrpc.cs34 …gle.Protobuf.MessageExtensions.ToByteArray(arg), global::Helloworld.HelloRequest.Parser.ParseFrom);
35 …oogle.Protobuf.MessageExtensions.ToByteArray(arg), global::Helloworld.HelloReply.Parser.ParseFrom);
/external/grpc-grpc/examples/csharp/Helloworld/Greeter/
DHelloworldGrpc.cs33 …gle.Protobuf.MessageExtensions.ToByteArray(arg), global::Helloworld.HelloRequest.Parser.ParseFrom);
34 …oogle.Protobuf.MessageExtensions.ToByteArray(arg), global::Helloworld.HelloReply.Parser.ParseFrom);
/external/grpc-grpc/src/csharp/Grpc.HealthCheck/
DHealthGrpc.cs33 …uf.MessageExtensions.ToByteArray(arg), global::Grpc.Health.V1.HealthCheckRequest.Parser.ParseFrom);
34 …f.MessageExtensions.ToByteArray(arg), global::Grpc.Health.V1.HealthCheckResponse.Parser.ParseFrom);
/external/webrtc/webrtc/modules/remote_bitrate_estimator/
Dtransport_feedback_adapter_unittest.cc216 feedback = rtcp::TransportFeedback::ParseFrom(raw_packet->Buffer(), in TEST_F()
285 feedback = rtcp::TransportFeedback::ParseFrom(raw_packet->Buffer(), in TEST_F()
306 feedback = rtcp::TransportFeedback::ParseFrom(raw_packet->Buffer(), in TEST_F()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dtensor_coding_test.cc95 Status s = response.ParseFrom(&source); in Validate()
185 Status s = response.ParseFrom(&source); in BM_TensorResponse()
Dtensor_coding.h71 Status ParseFrom(Source* source);
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_worker_service_impl.h55 auto s = msg->ParseFrom(&source); in Deserialize()

12