amsg:C++ 序列化库

时间:2021-06-04 16:31:55
【文件属性】:
文件名称:amsg:C++ 序列化库
文件大小:19KB
文件格式:ZIP
更新时间:2021-06-04 16:31:55
C++ AMSG v2.0 AMSG 是一个 C++ 序列化库。 功能概述 轻量、快速、高效的序列化实现 只有一个宏来注册C++结构体,一行代码就够了 仅头文件,无需构建库,只需三个 hpp 文件 支持 C++11 默认支持 C++ 内置类型和所有 std 容器 什么是AMSG? struct person { std::string name; int age; bool operator ==(person const & rhs) const { return name == rhs. name && age == rhs. age ; } }; AMSG (person, (name)(age)); # define ENOUGH_SIZE 4096 unsigned char buf[ENOUGH_SIZE]; // seriali
【文件预览】:
amsg-master
----example()
--------size_of()
--------smax()
--------sfix()
--------CMakeLists.txt(1KB)
----all.hpp(387B)
----test()
--------test_base.hpp(5KB)
--------main.cpp(575B)
--------CMakeLists.txt(954B)
----zerocopy.hpp(19KB)
----License.txt(1KB)
----amsg.hpp(39KB)
----CMakeLists.txt(3KB)
----README.md(3KB)

网友评论