Git Product home page Git Product logo

dropbear.codex.serialization's Introduction

Serialization Project

Overview

This project provides advanced serialization and deserialization capabilities, supporting formats like JSON, MessagePack, and MemoryPack. It includes performance optimizations, error handling, and supports compression and encoding options.

Features

  • Serialization & Deserialization: Supports JSON, MessagePack, and MemoryPack with optional compression.
  • Customizable: Easily extendable for additional formats or compression algorithms.
  • Error Handling: Robust error handling and logging for debugging and operational insights.

Getting Started

To use the serializers, instantiate the DataSerializer class with dependencies on specific serializers (JsonSerializer, MessagePackSerializer, MemoryPackSerializer) and a compression helper.

var logger = // Obtain ILogger instance
var compressionHelper = new CompressionHelper(logger);
var jsonSerializer = new JsonSerializer(logger, compressionHelper);
var messagePackSerializer = new MessagePackSerializer(logger, compressionHelper);
var memoryPackSerializer = new MemoryPackSerializer(logger, compressionHelper);
var dataSerializer = new DataSerializer(logger, jsonSerializer, messagePackSerializer, memoryPackSerializer);

Alternatively use the service collection extension method to register the serializers and compression helper.

Simply add the following line to your `Startup.cs` file:

services.AddDataSerializationServices();

Usage

Use the dataSerializer instance to serialize and deserialize data to/from JSON, MessagePack, and MemoryPack formats, with or without compression.

Contributing

Contributions are welcome! Please open an issue or pull request to suggest improvements or add new features. License

This project is licensed under GNU Lesser General Public License.

dropbear.codex.serialization's People

Contributors

tkuchel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.