-
Notifications
You must be signed in to change notification settings - Fork 3
Home
It is a fast and portable binary serializer designed to be easily used on your existing code with minimal changes on a wide range of .NET platforms. With AqlaSerializer you can store objects as a small in size binary data (far smaller than xml). And it's more CPU effective than BinaryFormatter and other core .NET serializers (which could be unavailable on your target platform).
Basically this is a fork of well known protobuf-net project. Protobuf-net tries to maintain Google Protocol Buffers format compatibility and unfortunately has issues with handling some very the common .NET specific features.
AqlaSerializer project goal is not to make a Protocol Buffers compatible implementation but instead support all common .NET features.
Usage is very simple; at the most basic level, simply read from a stream or write to a stream:
class Person
{
public int Id { get; set; }
public string Name { get; set: }
}
// write to a file
Serializer.Serialize(outputStream, person);
...
// read from a file
var person = Serializer.Deserialize<Person>(inputStream);
See also Getting Started