Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
355 B
14 lines
355 B
7 months ago
|
#include <cstdint>
|
||
|
|
||
|
#include "google/protobuf/rust/test/benchmarks/bench_data.pb.h"
|
||
|
|
||
|
using benchmarks::BenchData;
|
||
|
|
||
|
extern "C" void benchmark_thunk_set_num2(void* proto, int32_t num) {
|
||
|
static_cast<BenchData*>(proto)->set_num2(num);
|
||
|
}
|
||
|
|
||
|
extern "C" void benchmark_thunk_add_num(void* proto, int32_t num) {
|
||
|
static_cast<BenchData*>(proto)->add_nums(num);
|
||
|
}
|