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.
45 lines
864 B
45 lines
864 B
cc_library( |
|
name = "zero_copy_stream", |
|
hdrs = [ |
|
"zero_copy_input_stream.h", |
|
"zero_copy_output_stream.h", |
|
], |
|
visibility = ["//upb/io:__pkg__"], |
|
deps = [ |
|
"//:upb", |
|
"//:port", |
|
], |
|
) |
|
|
|
cc_library( |
|
name = "chunked_stream", |
|
testonly = 1, |
|
srcs = [ |
|
"chunked_input_stream.c", |
|
"chunked_output_stream.c", |
|
], |
|
hdrs = [ |
|
"chunked_input_stream.h", |
|
"chunked_output_stream.h", |
|
], |
|
visibility = ["//upb/io:__pkg__"], |
|
deps = [ |
|
":zero_copy_stream", |
|
"//:upb", |
|
"//:port", |
|
], |
|
) |
|
|
|
cc_test( |
|
name = "zero_copy_stream_test", |
|
size = "small", |
|
srcs = [ |
|
"zero_copy_stream_test.cc", |
|
], |
|
deps = [ |
|
":chunked_stream", |
|
":zero_copy_stream", |
|
"//:upb", |
|
"@com_google_googletest//:gtest_main", |
|
], |
|
)
|
|
|