Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 10824027: Implement better marshaling (Closed)

Created:
May 31, 2013, 8:26 a.m. by Wladimir Palant
Modified:
June 19, 2013, 5:37 p.m.
Reviewers:
Felix Dahlke, Oleksandr
Visibility:
Public.

Description

Implement better marshaling

Patch Set 1 #

Total comments: 19

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -6 lines) Patch
M src/shared/Communication.h View 1 3 chunks +11 lines, -6 lines 3 comments Download

Messages

Total messages: 9
Wladimir Palant
May 31, 2013, 8:27 a.m. (2013-05-31 08:27:02 UTC) #1
Oleksandr
On 2013/05/31 08:27:02, Wladimir Palant wrote: LGTM
May 31, 2013, 9:14 a.m. (2013-05-31 09:14:09 UTC) #2
Felix Dahlke
This is similar to what I had in mind, although my approach didn't include types. ...
June 3, 2013, 11:25 a.m. (2013-06-03 11:25:41 UTC) #3
Wladimir Palant
http://codereview.adblockplus.org/10824027/diff/1/src/shared/Communication.h File src/shared/Communication.h (right): http://codereview.adblockplus.org/10824027/diff/1/src/shared/Communication.h#newcode30 src/shared/Communication.h:30: InputBuffer& ReadString(T& value, ValueType expectedType) On 2013/06/03 11:25:41, Felix ...
June 3, 2013, 11:53 a.m. (2013-06-03 11:53:00 UTC) #4
Felix Dahlke
http://codereview.adblockplus.org/10824027/diff/1/src/shared/Communication.h File src/shared/Communication.h (right): http://codereview.adblockplus.org/10824027/diff/1/src/shared/Communication.h#newcode32 src/shared/Communication.h:32: int32_t type; On 2013/06/03 11:53:00, Wladimir Palant wrote: > ...
June 3, 2013, 12:02 p.m. (2013-06-03 12:02:09 UTC) #5
Wladimir Palant
I added typedefs and a non-implemented assignment operator.
June 3, 2013, 12:07 p.m. (2013-06-03 12:07:05 UTC) #6
Felix Dahlke
LGTM and one nit. http://codereview.adblockplus.org/10824027/diff/8001/src/shared/Communication.h File src/shared/Communication.h (right): http://codereview.adblockplus.org/10824027/diff/8001/src/shared/Communication.h#newcode123 src/shared/Communication.h:123: OutputBuffer& Write(const T value, ValueType ...
June 3, 2013, 12:23 p.m. (2013-06-03 12:23:53 UTC) #7
Wladimir Palant
http://codereview.adblockplus.org/10824027/diff/8001/src/shared/Communication.h File src/shared/Communication.h (right): http://codereview.adblockplus.org/10824027/diff/8001/src/shared/Communication.h#newcode123 src/shared/Communication.h:123: OutputBuffer& Write(const T value, ValueType type) On 2013/06/03 12:23:54, ...
June 3, 2013, 12:25 p.m. (2013-06-03 12:25:55 UTC) #8
Felix Dahlke
June 4, 2013, 6:41 a.m. (2013-06-04 06:41:38 UTC) #9
LGTM

http://codereview.adblockplus.org/10824027/diff/8001/src/shared/Communication.h
File src/shared/Communication.h (right):

http://codereview.adblockplus.org/10824027/diff/8001/src/shared/Communication...
src/shared/Communication.h:123: OutputBuffer& Write(const T value, ValueType
type)
On 2013/06/03 12:25:55, Wladimir Palant wrote:
> On 2013/06/03 12:23:54, Felix H. Dahlke wrote:
> > Shouldn't value be passed by reference?
> 
> Given that this function is meant for primitive types only (ints and bools),
do
> you think that this would be wise?

Right, didn't think of that. Won't hurt, but it won't hurt right now either.

Powered by Google App Engine
This is Rietveld