Home
last modified time | relevance | path

Searched refs:WriteOptions (Results 1 – 25 of 31) sorted by relevance

12

/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DCompressionTest.cs60 context.WriteOptions = new WriteOptions(WriteFlags.NoCompress); in WriteOptions_Unary()
64 … var callOptions = new CallOptions(writeOptions: new WriteOptions(WriteFlags.NoCompress)); in WriteOptions_Unary()
75 context.WriteOptions = new WriteOptions(WriteFlags.NoCompress); in WriteOptions_DuplexStreaming()
81 responseStream.WriteOptions = null; in WriteOptions_DuplexStreaming()
84 responseStream.WriteOptions = new WriteOptions(WriteFlags.NoCompress); in WriteOptions_DuplexStreaming()
88 … var callOptions = new CallOptions(writeOptions: new WriteOptions(WriteFlags.NoCompress)); in WriteOptions_DuplexStreaming()
92 Assert.IsTrue((call.RequestStream.WriteOptions.Flags & WriteFlags.NoCompress) != 0); in WriteOptions_DuplexStreaming()
94 call.RequestStream.WriteOptions = new WriteOptions(); in WriteOptions_DuplexStreaming()
97 call.RequestStream.WriteOptions = null; in WriteOptions_DuplexStreaming()
100 call.RequestStream.WriteOptions = new WriteOptions(WriteFlags.NoCompress); in WriteOptions_DuplexStreaming()
DCallOptionsTest.cs45 var writeOptions = new WriteOptions(); in WithMethods()
46 Assert.AreSame(writeOptions, options.WithWriteOptions(writeOptions).WriteOptions); in WithMethods()
62 Assert.IsNull(options.WriteOptions); in WithMethods()
/external/grpc-grpc/src/csharp/Grpc.Core.Testing/
DTestServerCallContext.cs37 …Func<Metadata, Task> writeHeadersFunc, Func<WriteOptions> writeOptionsGetter, Action<WriteOptions>… in Create()
46 Func<WriteOptions> writeOptionsGetter;
47 Action<WriteOptions> writeOptionsSetter;
49 …public WriteOptionsHolder(Func<WriteOptions> writeOptionsGetter, Action<WriteOptions> writeOptions… in WriteOptionsHolder()
55 …public WriteOptions WriteOptions { get => writeOptionsGetter(); set => writeOptionsSetter(value); } property in Grpc.Core.Testing.TestServerCallContext.WriteOptionsHolder
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dcall.h81 class WriteOptions {
83 WriteOptions() : flags_(0), last_message_(false) {} in WriteOptions() function
84 WriteOptions(const WriteOptions& other) in WriteOptions() function
96 inline WriteOptions& set_no_compression() { in set_no_compression()
104 inline WriteOptions& clear_no_compression() { in clear_no_compression()
121 inline WriteOptions& set_buffer_hint() { in set_buffer_hint()
130 inline WriteOptions& clear_buffer_hint() { in clear_buffer_hint()
143 inline WriteOptions& set_corked() { in set_corked()
148 inline WriteOptions& clear_corked() { in clear_corked()
160 inline WriteOptions& set_last_message() { in set_last_message()
[all …]
Dsync_stream.h116 virtual bool Write(const W& msg, WriteOptions options) = 0;
124 inline bool Write(const W& msg) { return Write(msg, WriteOptions()); } in Write()
140 void WriteLast(const W& msg, WriteOptions options) { in WriteLast()
319 bool Write(const W& msg, WriteOptions options) override { in Write()
490 bool Write(const W& msg, WriteOptions options) override { in Write()
654 bool Write(const W& msg, WriteOptions options) override { in Write()
733 bool Write(const W& msg, WriteOptions options) { in Write()
791 bool Write(const W& msg, WriteOptions options) override { in Write()
853 bool Write(const ResponseType& response, WriteOptions options) override { in Write()
918 bool Write(const ResponseType& response, WriteOptions options) override { in Write()
Dasync_stream.h139 virtual void Write(const W& msg, WriteOptions options, void* tag) = 0;
159 void WriteLast(const W& msg, WriteOptions options, void* tag) { in WriteLast()
392 void Write(const W& msg, WriteOptions options, void* tag) override { in Write()
569 void Write(const W& msg, WriteOptions options, void* tag) override { in Write()
839 virtual void WriteAndFinish(const W& msg, WriteOptions options,
879 void Write(const W& msg, WriteOptions options, void* tag) override { in Write()
901 void WriteAndFinish(const W& msg, WriteOptions options, const Status& status, in WriteAndFinish()
1002 virtual void WriteAndFinish(const W& msg, WriteOptions options,
1051 void Write(const W& msg, WriteOptions options, void* tag) override { in Write()
1072 void WriteAndFinish(const W& msg, WriteOptions options, const Status& status, in WriteAndFinish()
/external/grpc-grpc/src/csharp/Grpc.Core/
DWriteOptions.cs45 public class WriteOptions class
50 public static readonly WriteOptions Default = new WriteOptions();
58 public WriteOptions(WriteFlags flags = default(WriteFlags)) in WriteOptions() method in Grpc.Core.WriteOptions
DServerCallContext.cs186 public WriteOptions WriteOptions property in Grpc.Core.ServerCallContext
190 return writeOptionsHolder.WriteOptions;
195 writeOptionsHolder.WriteOptions = value;
232 WriteOptions WriteOptions { get; set; } property
DCallOptions.cs35 WriteOptions writeOptions;
50WriteOptions writeOptions = null, ContextPropagationToken propagationToken = null, CallCredentials… in CallOptions()
94 public WriteOptions WriteOptions property
174 public CallOptions WithWriteOptions(WriteOptions writeOptions) in WithWriteOptions()
DIAsyncStreamWriter.cs45 WriteOptions WriteOptions { get; set; } property
/external/tensorflow/tensorflow/lite/toco/tflite/
Doperator.cc44 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::AveragePool
82 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::Convolution
136 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::DepthwiseConvolution
188 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::Add
218 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::AddN
239 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::SpaceToBatchND
264 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::Sub
294 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::Div
320 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::BatchToSpaceND
344 flatbuffers::Offset<TfLiteOptions> WriteOptions( in WriteOptions() function in toco::tflite::Cast
[all …]
Dcustom_operator.h40 virtual void WriteOptions(const TocoOperator& op, in WriteOptions() function
51 [&]() { WriteOptions(static_cast<const TocoOperator&>(op), &fbb); }); in Serialize()
Dbuiltin_operator.h43 virtual flatbuffers::Offset<TfLiteOptions> WriteOptions(
54 auto options = WriteOptions(static_cast<const TocoOperator&>(op), builder); in Serialize()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DClientRequestStream.cs28 WriteOptions writeOptions;
33 this.writeOptions = call.Details.Options.WriteOptions; in ClientRequestStream()
46 public WriteOptions WriteOptions property in Grpc.Core.Internal.ClientRequestStream
DServerResponseStream.cs31 WriteOptions writeOptions;
48 public WriteOptions WriteOptions property in Grpc.Core.Internal.ServerResponseStream
DServerCallHandler.cs73 …TRequest, TResponse>.ResponseWithFlags(response, HandlerUtils.GetWriteFlags(context.WriteOptions)); in HandleCall()
198 …TRequest, TResponse>.ResponseWithFlags(response, HandlerUtils.GetWriteFlags(context.WriteOptions)); in HandleCall()
343 public static WriteFlags GetWriteFlags(WriteOptions writeOptions) in GetWriteFlags()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Interceptors/
DClientInterceptorTest.cs215 public WriteOptions WriteOptions property in Grpc.Core.Interceptors.Tests.ClientInterceptorTest.WrappedClientStreamWriter
219 return writer.WriteOptions;
223 writer.WriteOptions = value;
/external/grpc-grpc/include/grpcpp/test/
Dmock_stream.h58 MOCK_METHOD2_T(Write, bool(const W&, const WriteOptions));
77 MOCK_METHOD2_T(Write, bool(const W&, const WriteOptions));
/external/grpc-grpc/doc/cpp/
Dperf_notes.md10 possible to enable write batching by passing a WriteOptions argument to Write
14 stream_writer->Write(message, WriteOptions().set_buffer_hint());
/external/grpc-grpc/test/cpp/microbenchmarks/
Dfullstack_streaming_ping_pong.h287 request_rw->WriteLast(send_request, WriteOptions(), tag(2)); in BM_StreamingPingPongWithCoalescingApi()
326 response_rw.WriteAndFinish(send_response, WriteOptions(), in BM_StreamingPingPongWithCoalescingApi()
330 response_rw.WriteLast(send_response, WriteOptions(), tag(5)); in BM_StreamingPingPongWithCoalescingApi()
/external/grpc-grpc/src/csharp/Grpc.Examples.Tests/
DMathServiceImplTestabilityTest.cs41 ….0.0.1", null, null, (metadata) => TaskUtils.CompletedTask, () => new WriteOptions(), (writeOption… in ServerCallImplIsTestable()
/external/grpc-grpc/test/cpp/end2end/
Dtest_service_impl.cc256 writer->WriteLast(response, WriteOptions()); in ResponseStream()
315 stream->WriteLast(response, WriteOptions()); in BidiStream()
Dasync_end2end_test.cc577 cli_stream->WriteLast(send_request, WriteOptions(), tag(5)); in TEST_P()
667 srv_stream.WriteAndFinish(send_response, WriteOptions(), Status::OK, tag(5)); in TEST_P()
710 srv_stream.WriteLast(send_response, WriteOptions(), tag(5)); in TEST_P()
790 cli_stream->WriteLast(send_request, WriteOptions(), tag(3)); in TEST_P()
805 srv_stream.WriteAndFinish(send_response, WriteOptions(), Status::OK, tag(6)); in TEST_P()
837 cli_stream->WriteLast(send_request, WriteOptions(), tag(3)); in TEST_P()
852 srv_stream.WriteLast(send_response, WriteOptions(), tag(6)); in TEST_P()
Dend2end_test.cc757 stream->WriteLast(request, WriteOptions()); in TEST_P()
787 EXPECT_TRUE(stream->Write(request, WriteOptions().set_write_through())); in TEST_P()
788 EXPECT_TRUE(stream->Write(request, WriteOptions().set_write_through())); in TEST_P()
805 stream->WriteLast(request, WriteOptions()); in TEST_P()
917 stream->WriteLast(request, WriteOptions()); in TEST_P()
942 stream->WriteLast(request, WriteOptions()); in TEST_P()
/external/grpc-grpc/test/cpp/interop/
Dinterop_server.cc57 using grpc::WriteOptions;
205 WriteOptions wopts; in StreamingOutputCall()

12