GRPC C++
1.30.0
|
Per-message write options. More...
#include <call_op_set.h>
Public Member Functions | |
WriteOptions () | |
WriteOptions (const WriteOptions &other) | |
WriteOptions & | operator= (const WriteOptions &other)=default |
Default assignment operator. More... | |
void | Clear () |
Clear all flags. More... | |
uint32_t | flags () const |
Returns raw flags bitset. More... | |
WriteOptions & | set_no_compression () |
Sets flag for the disabling of compression for the next message write. More... | |
WriteOptions & | clear_no_compression () |
Clears flag for the disabling of compression for the next message write. More... | |
bool | get_no_compression () const |
Get value for the flag indicating whether compression for the next message write is forcefully disabled. More... | |
WriteOptions & | set_buffer_hint () |
Sets flag indicating that the write may be buffered and need not go out on the wire immediately. More... | |
WriteOptions & | clear_buffer_hint () |
Clears flag indicating that the write may be buffered and need not go out on the wire immediately. More... | |
bool | get_buffer_hint () const |
Get value for the flag indicating that the write may be buffered and need not go out on the wire immediately. More... | |
WriteOptions & | set_corked () |
corked bit: aliases set_buffer_hint currently, with the intent that set_buffer_hint will be removed in the future More... | |
WriteOptions & | clear_corked () |
bool | is_corked () const |
WriteOptions & | set_last_message () |
last-message bit: indicates this is the last message in a stream client-side: makes Write the equivalent of performing Write, WritesDone in a single step server-side: hold the Write until the service handler returns (sync api) or until Finish is called (async api) More... | |
WriteOptions & | clear_last_message () |
Clears flag indicating that this is the last message in a stream, disabling coalescing. More... | |
WriteOptions & | set_write_through () |
Guarantee that all bytes have been written to the socket before completing this write (usually writes are completed when they pass flow control). More... | |
bool | is_write_through () const |
bool | is_last_message () const |
Get value for the flag indicating that this is the last message, and should be coalesced with trailing metadata. More... | |
Per-message write options.
|
inline |
|
inline |
|
inline |
Clear all flags.
|
inline |
Clears flag indicating that the write may be buffered and need not go out on the wire immediately.
|
inline |
|
inline |
Clears flag indicating that this is the last message in a stream, disabling coalescing.
|
inline |
Clears flag for the disabling of compression for the next message write.
|
inline |
Returns raw flags bitset.
|
inline |
Get value for the flag indicating that the write may be buffered and need not go out on the wire immediately.
|
inline |
Get value for the flag indicating whether compression for the next message write is forcefully disabled.
|
inline |
|
inline |
Get value for the flag indicating that this is the last message, and should be coalesced with trailing metadata.
|
inline |
|
default |
Default assignment operator.
|
inline |
Sets flag indicating that the write may be buffered and need not go out on the wire immediately.
|
inline |
corked bit: aliases set_buffer_hint currently, with the intent that set_buffer_hint will be removed in the future
|
inline |
last-message bit: indicates this is the last message in a stream client-side: makes Write the equivalent of performing Write, WritesDone in a single step server-side: hold the Write until the service handler returns (sync api) or until Finish is called (async api)
|
inline |
Sets flag for the disabling of compression for the next message write.
|
inline |
Guarantee that all bytes have been written to the socket before completing this write (usually writes are completed when they pass flow control).