userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
any_conv.cpp
1
#include <
userver/proto-structs/io/userver/proto_structs/any_conv.hpp
>
2
3
#include <
userver/proto-structs/any.hpp
>
4
5
USERVER_NAMESPACE_BEGIN
6
7
namespace
proto_structs::io
{
8
9
proto_structs::Any ReadProtoStruct(
ReadContext
&,
To<proto_structs::Any>
, const ::google::protobuf::Any& msg) {
10
return
proto_structs::Any{msg};
11
}
12
13
void
WriteProtoStruct(
WriteContext
&,
const
proto_structs::Any& obj, ::google::protobuf::Any& msg) {
14
msg = obj.
GetProtobufAny
();
15
}
16
17
void
WriteProtoStruct(
WriteContext
&, proto_structs::Any&& obj, ::google::protobuf::Any& msg) {
18
msg = std::move(obj).GetProtobufAny();
19
}
20
21
}
// namespace proto_structs::io
22
23
USERVER_NAMESPACE_END
proto-structs
src
proto-structs
io
userver
proto_structs
any_conv.cpp
Generated on
for userver by
Doxygen
1.17.0