Skip to content

A simple and efficient object -> byte serializer/deserializer

Notifications You must be signed in to change notification settings

not-ilinked/Sunrise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Sunrise is a simple and efficient object -> byte serializer/deserializer.
Format wise it's somewhat similar to the MP4 container but is also inspired a lot from JSON.

Usage

Serializing

SunriseArray numbers = new SunriseArray(new List<SunriseToken>() 
{ 
    new SunriseValue(BitConverter.GetBytes(420)),
    new SunriseValue(BitConverter.GetBytes(69))
});

SunriseObject container = new SunriseObject();
container["numbers"] = numbers;

byte[] output = container.Serialize();

Deserializing

SunriseObject deserialized = (SunriseObject)SunriseDeserializer.Deserialize(output);

Sunrise standard specification

TODO

About

A simple and efficient object -> byte serializer/deserializer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages