aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/stream/stream_context.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-20 22:44:10 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-20 22:44:10 -0800
commit724b7c693ad96a31cb49a340f05e5c915a9e62d4 (patch)
treedeaa6479b0fada89c2b046eaa0c159acde50af13 /src/cpp/stream/stream_context.h
parent8379a06f8dddbe99b9f99163111255794eff07b5 (diff)
clang-format
Diffstat (limited to 'src/cpp/stream/stream_context.h')
-rw-r--r--src/cpp/stream/stream_context.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/cpp/stream/stream_context.h b/src/cpp/stream/stream_context.h
index fcc4239c90..8def589841 100644
--- a/src/cpp/stream/stream_context.h
+++ b/src/cpp/stream/stream_context.h
@@ -72,13 +72,15 @@ class StreamContext final : public StreamContextInterface {
// Unique tags for plucking events from the c layer. this pointer is casted
// to char* to create single byte step between tags. It implicitly relies on
// that StreamContext is large enough to contain all the pointers.
- void* finished_tag() { return reinterpret_cast<char*>(this); }
- void* read_tag() { return reinterpret_cast<char*>(this) + 1; }
- void* write_tag() { return reinterpret_cast<char*>(this) + 2; }
- void* halfclose_tag() { return reinterpret_cast<char*>(this) + 3; }
- void* client_metadata_read_tag() { return reinterpret_cast<char*>(this) + 5; }
- grpc_call* call() { return call_; }
- grpc_completion_queue* cq() { return cq_; }
+ void *finished_tag() { return reinterpret_cast<char *>(this); }
+ void *read_tag() { return reinterpret_cast<char *>(this) + 1; }
+ void *write_tag() { return reinterpret_cast<char *>(this) + 2; }
+ void *halfclose_tag() { return reinterpret_cast<char *>(this) + 3; }
+ void *client_metadata_read_tag() {
+ return reinterpret_cast<char *>(this) + 5;
+ }
+ grpc_call *call() { return call_; }
+ grpc_completion_queue *cq() { return cq_; }
bool is_client_;
const RpcMethod *method_; // not owned