Cheng-Yu Chung
3236174176
Remove `include/grpcpp/impl/codegen/byte_buffer.h` ( #30948 )
...
* Remove `include/grpcpp/impl/codegen/byte_buffer.h`
* Update
2 years ago
Craig Tiller
28316341bf
Annotate impl/codegen with IWYU pragmas ( #27252 )
...
* Add a tool to annotate impl/codegen with IWYU pragmas
* xx
* oops
* fmt
* x
* fix wrong direction bug
* use defaultdict
* better annotations
* better annotations
* Automated change: Fix sanity tests
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
Esun Kim
decc199ca8
Fix by clang-tidy
4 years ago
Christian Maurer
d48e350d58
Remove conversion warning by static casting
4 years ago
Nicolas Noble
de76cf8522
Stop using ByteSize as it's deprecated.
...
Fixes #21603
5 years ago
Soheil Hassas Yeganeh
eadd5ea110
Directly use the ZeroCopyInputStream for grpc::GenericDeserialize.
...
There is no need to use CodedInputStream, wrapping a
ZeroCopyInputStream.
Suggested by: Gerben Stavenga
5 years ago
kwasimensah
cd0e02ae1c
Fixing formatting
6 years ago
kwasimensah
51a2280029
Add MessageLite overloads to proto serialization
6 years ago
ncteisen
92c4e0fee0
Rename ProtoBuffer helpers
7 years ago
ncteisen
cf5b2666e1
Make GrpcProtoBufferReaderWriter public
7 years ago
Muxi Yan
0e00c43082
Move headers from grpc++ to grpcpp
7 years ago
yang-g
89464de6f0
Trim backup slice when it is larger than needed
7 years ago
yang-g
b90f0e66e5
relax for inlined bytes to avoid allocation
7 years ago
yang-g
c88185900d
handle 0 byte size message...
7 years ago
yang-g
272eebbbcd
Only allocate what we need in the last slice for proto serialization
7 years ago
ncteisen
27a6713db3
Use protected, remove uneeded member variable
7 years ago
ncteisen
023726202a
Refactor SerializationTraits
7 years ago
ncteisen
616dafd52c
Partial revert of https://github.com/grpc/grpc/pull/10743
8 years ago
Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
ncteisen
22dbd73b43
Add static assert to enforce subtype invariant
8 years ago
Craig Tiller
017b452b7b
Use larger block size in proto write
8 years ago
ncteisen
e107b0d439
Add to codegen interface, refactor proto serialization
...
This change allows for some internal proto serialization
changes to be made
8 years ago
Harvey Tuch
5f3cfe960f
Fix read from uninitialized memory bug in GrpcBufferWriter.
...
This commit fixes an issue in which the following sequence of operations
leads to use of uninitialized memory:
1. Caller invokes GrpcBufferWriter::Next(), and then makes use of 8191
bytes in the returned buffer (which is 8192 bytes in size).
2. Caller then returns the unused single byte via
GrpcBufferWriter::BackUp(). This method invokes
g_core_codegen_interface->grpc_slice_split_tail(), which causes
backup_slice_ to be a grpc_slice with one byte.
3. At the next invocation of GrpcBufferWriter::Next(), a reference to
the single byte grpc_slice is returned to the caller.
The problem here is that the returned reference is to the inlined buffer
in the grpc_slice, which is resident in slice_, not the location of the
buffer inside slice_buffer_ after
g_core_codegen_interface->grpc_slice_buffer_add() in
GrpcBufferWriter::Next(). As a result, any data the caller writes to the
returned void* data is lost.
The solution is to avoid inlined backup slices.
8 years ago
Craig Tiller
1d77059e4b
Fix integer overflow
8 years ago
Craig Tiller
62f28bfcf0
Remove double-checking of max-message-size in C++ layers
8 years ago
Vijay Pai
c0b2acb1a0
Use C++11 final and override
8 years ago
Craig Tiller
618e67d655
s/GPR_SLICE/GRPC_SLICE/g
8 years ago
Craig Tiller
d41a4a720f
s/gpr_slice/grpc_slice, and move around tests, impls
8 years ago
Mark D. Roth
6980362c4e
Allow setting max send message size via C++ ServerBuilder API.
8 years ago
David Garcia Quintas
c79b0650d2
removed codegen/log.h
8 years ago
David Garcia Quintas
3b31fdf77b
removed codegen/byte_buffer.h
8 years ago
David Garcia Quintas
6721d4f0f1
Return success status of grpc_byte_buffer_reader
9 years ago
David Garcia Quintas
0fde7131aa
Fixed usage of anon namespace inside .h
9 years ago
David Garcia Quintas
1b2db6333d
Moved protos out of core_codegen interface
9 years ago
Craig Tiller
6169d5f7b0
Update copyrights
9 years ago
David Garcia Quintas
b942640497
clang-format
9 years ago
David Garcia Quintas
6848c4e145
wip. prior to cq refactoring
9 years ago
David Garcia Quintas
7f7181ffc5
fix comments
9 years ago
David Garcia Quintas
c4f4f7ede9
clang-format
9 years ago
David Garcia Quintas
f588aeb1e2
introduced workaround for proto_utils
9 years ago
Alistair Veitch
75d5c0f024
post merge
9 years ago
David Garcia Quintas
5a9462339d
copyrights
9 years ago
David Garcia Quintas
6a48405ed0
pre sync_stream.cc creation. Does not compile
9 years ago
yang-g
9e2f90cd06
headers reorg
9 years ago
Craig Tiller
e9fad15b0b
Remove redundant decls
10 years ago
Craig Tiller
bd277cb3cb
Clarify serialization traits interface
10 years ago
Craig Tiller
928ec8ee51
Fix memory leak
10 years ago
Craig Tiller
4beef42264
Clarify ownership
10 years ago
Craig Tiller
ce40de58da
clang-format
10 years ago
Craig Tiller
50a7a68ca2
Progress commit on fixing up C++
10 years ago