Created
July 23, 2019 14:44
-
-
Save shawncao/abc91b05ce6167ace226ead2383f2302 to your computer and use it in GitHub Desktop.
Revisions
-
shawncao created this gist
Jul 23, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ /// Is this ByteBuffer valid? bool Valid() const { return (buffer_ != nullptr); } + grpc_byte_buffer* c_buffer() { return buffer_; } private: friend class SerializationTraits<ByteBuffer, void>; friend class ServerInterface; Context not available. buffer_ = buf; } - grpc_byte_buffer* c_buffer() { return buffer_; } grpc_byte_buffer** c_buffer_ptr() { return &buffer_; } class ByteBufferPointer {