diff options
| author | neksard <[email protected]> | 2022-02-10 16:45:33 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:33 +0300 |
| commit | 1d9c550e7c38e051d7961f576013a482003a70d9 (patch) | |
| tree | b2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /contrib/libs/grpc/include/grpcpp/impl/codegen/byte_buffer.h | |
| parent | 8f7cf138264e0caa318144bf8a2c950e0b0a8593 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/grpc/include/grpcpp/impl/codegen/byte_buffer.h')
| -rw-r--r-- | contrib/libs/grpc/include/grpcpp/impl/codegen/byte_buffer.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/contrib/libs/grpc/include/grpcpp/impl/codegen/byte_buffer.h b/contrib/libs/grpc/include/grpcpp/impl/codegen/byte_buffer.h index 5b157cb43e6..6e64ec9981e 100644 --- a/contrib/libs/grpc/include/grpcpp/impl/codegen/byte_buffer.h +++ b/contrib/libs/grpc/include/grpcpp/impl/codegen/byte_buffer.h @@ -54,7 +54,7 @@ class ExternalConnectionAcceptorImpl; template <class R> class DeserializeFuncType; class GrpcByteBufferPeer; - + } // namespace internal /// A sequence of bytes. class ByteBuffer final { @@ -89,9 +89,9 @@ class ByteBuffer final { } /// Constuct a byte buffer by referencing elements of existing buffer - /// \a buf. Wrapper of core function grpc_byte_buffer_copy . This is not - /// a deep copy; it is just a referencing. As a result, its performance is - /// size-independent. + /// \a buf. Wrapper of core function grpc_byte_buffer_copy . This is not + /// a deep copy; it is just a referencing. As a result, its performance is + /// size-independent. ByteBuffer(const ByteBuffer& buf) : buffer_(nullptr) { operator=(buf); } ~ByteBuffer() { @@ -100,9 +100,9 @@ class ByteBuffer final { } } - /// Wrapper of core function grpc_byte_buffer_copy . This is not - /// a deep copy; it is just a referencing. As a result, its performance is - /// size-independent. + /// Wrapper of core function grpc_byte_buffer_copy . This is not + /// a deep copy; it is just a referencing. As a result, its performance is + /// size-independent. ByteBuffer& operator=(const ByteBuffer& buf) { if (this != &buf) { Clear(); // first remove existing data @@ -127,9 +127,9 @@ class ByteBuffer final { /// Make a duplicate copy of the internals of this byte /// buffer so that we have our own owned version of it. - /// bbuf.Duplicate(); is equivalent to bbuf=bbuf; but is actually readable. - /// This is not a deep copy; it is a referencing and its performance - /// is size-independent. + /// bbuf.Duplicate(); is equivalent to bbuf=bbuf; but is actually readable. + /// This is not a deep copy; it is a referencing and its performance + /// is size-independent. void Duplicate() { buffer_ = g_core_codegen_interface->grpc_byte_buffer_copy(buffer_); } @@ -164,13 +164,13 @@ class ByteBuffer final { friend class internal::CallOpGenericRecvMessage; template <class ServiceType, class RequestType, class ResponseType> friend class internal::RpcMethodHandler; - template <class ServiceType, class RequestType, class ResponseType> + template <class ServiceType, class RequestType, class ResponseType> friend class internal::ServerStreamingHandler; - template <class RequestType, class ResponseType> + template <class RequestType, class ResponseType> friend class internal::CallbackUnaryHandler; - template <class RequestType, class ResponseType> + template <class RequestType, class ResponseType> friend class internal::CallbackServerStreamingHandler; - template <StatusCode code> + template <StatusCode code> friend class internal::ErrorMethodHandler; template <class R> friend class internal::DeserializeFuncType; |
