|
|
|
@ -77,16 +77,16 @@ void grpc_stream_ref_init(grpc_stream_refcount* refcount, int /*initial_refs*/, |
|
|
|
|
: nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void move64(uint64_t* from, uint64_t* to) { |
|
|
|
|
static void move64bits(uint64_t* from, uint64_t* to) { |
|
|
|
|
*to += *from; |
|
|
|
|
*from = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void grpc_transport_move_one_way_stats(grpc_transport_one_way_stats* from, |
|
|
|
|
grpc_transport_one_way_stats* to) { |
|
|
|
|
move64(&from->framing_bytes, &to->framing_bytes); |
|
|
|
|
move64(&from->data_bytes, &to->data_bytes); |
|
|
|
|
move64(&from->header_bytes, &to->header_bytes); |
|
|
|
|
move64bits(&from->framing_bytes, &to->framing_bytes); |
|
|
|
|
move64bits(&from->data_bytes, &to->data_bytes); |
|
|
|
|
move64bits(&from->header_bytes, &to->header_bytes); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void grpc_transport_move_stats(grpc_transport_stream_stats* from, |
|
|
|
|