A collection of modern C++ libraries, include coro_rpc, struct_pack, struct_json, struct_xml, struct_pb, easylog, async_simple - yalantinglibs/src at main · alibaba/yalantinglibs
@@ -10,7 +10,7 @@ [中文版](./website/docs/zh/guide/what_is_yalantinglibs.md) -yaLanTingLibs is a collection of C++20 libraries, now it contains struct_pack, struct_json, struct_pb, easylog, coro_rpc, coro_http and [async_simple](https://github.com/alibaba/async_simple), ...
structperson{int64_tid; std::string name;intage;doublesalary; }; person person1{.id=1, .name="hello struct pack", .age=20, .salary=1024.42};//one line code serializestd::vector<char> buffer = struct_pack::serialize(person1);//one line code deserializationautoperson2 = deserialize<person...
使用struct_json中转实现 proto class 和 proto struct的互转, 然后使用proto struct完成需求2 qicosmos commented on Feb 23, 2024 qicosmos on Feb 23, 2024 Collaborator @171930433 事实上struct_pack 也有反射功能,不能满足你的需求吗?定义一个struct_pack 结构体一样可以满足你的需求吧。 171930433 commented...
yaLanTingLibs is a collection of modern c++ util libraries, now it contains struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_io, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs in the future....
yaLanTingLibs is a collection of modern c++ util libraries, now it contains struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_io, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs in the future....
yaLanTingLibs is a collection of modern c++ util libraries, now it contains struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_io, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs in the future....
yaLanTingLibs is a collection of C++20 libraries, now it contains struct_pack, struct_json, struct_xml, struct_pb, easylog, coro_rpc, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs(such as http.) in the future....
17 18 STRUCT_PACK_INLINE void write(Writer& writer, const T* t, std::size_t len) { 18 19 if constexpr (detail::is_trivial_serializable<T>::value && 19 20 detail::is_little_endian_copyable<sizeof(T)>) { 20 - write_bytes_array(writer, (char*)t, sizeof(T) * len); 21...
yaLanTingLibs is a collection of modern c++ util libraries, now it contains struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_io, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs in the future....