dodopizza / primitives

.NET primitive types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dodo.Primitives

Latest release Coverage Status

Library provides .NET primitive types:

and utils to work with types:

Project goal

The main goal is Uuid implementation according to the RFC4122.

.NET provides System.Guid struct which is special case of the RFC4122 implementation. System.Guid has little-endian layout for the first 8 bytes (int32, int16, int16).

Our goal is to provide Uuid fully compliant with RFC4122 (big-endian layout) and preserve System.Guid-like behaviour. Also project contains generators to create different Uuid variants. Currently supported variants:

  • Time-based (like Uuid v1).

      var uuid = Uuid.NewTimeBased();
  • Time-based, optimized for MySQL.

      var uuid = Uuid.NewMySqlOptimized();

    Equals UUID_TO_BIN(UUID(), 1) from MySQL 8.0

Project documentation

About

.NET primitive types

License:MIT License


Languages

Language:C# 100.0%