Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
nop/serializer.h
✓ #include <nop/serializer.h>
Serialize a struct using libnop
#include <nop/serializer.h>
#include <nop/structure.h>
#include <iostream>
struct MyData {
int x;
float y;
NOP_STRUCTURE(MyData, x, y);
};
int main() {
MyData data{42, 3.14f};
nop::Serializer<nop::StreamWriter<std::string>> serializer;
auto result = serializer.Serialize(data);
if (result) {
std::cout << "Serialized size: " << serializer.writer().size() << std::endl;
}
return 0;
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2021-11-03latest on vcpkg
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.