Skip to content

c++20 Open Source header only binary serializer writen on top of standard cpp library

License

Notifications You must be signed in to change notification settings

FrancoisSestier/filesystem

Repository files navigation

Windows Ubuntu codecov License: Unlicense

filesystem

c++20 Open Source header only binary serializer writen on top of standard cpp library

Goal

serialize vector, arrays, tuple fast, easily, and possibly asynchronously

Supported data structure

vectors, arrays where the value_type is either trivially_copyable or has user defined fstream operators. tuple composed of serializable (has defined fstream operators) types

Usage Design

	
struct trivial_struct {
	int a;
	char b;
	float c;
}


std::vector<trivial_struct> vec1 = {{1, 'a', .1f}, {2, 'b', .2f}, {3, 'c', .3f}};

fs::write("test2.bin", vec2);

auto future = fs::read_async("test2.bin");

auto vec2 = future.get(); // vec1 is the same as vec2 

Examples

see tests for more examples

About

c++20 Open Source header only binary serializer writen on top of standard cpp library

Resources

License

Stars

Watchers

Forks

Packages

No packages published