Skip to content

Instantly share code, notes, and snippets.

View vanbukin's full-sized avatar

Roman Bukin vanbukin

View GitHub Profile
@vanbukin
vanbukin / Uuid.cs
Last active August 28, 2019 23:00
Uuidv1_29_08_2019_rev1
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.InteropServices;
namespace Uuid1
{
public unsafe struct Uuidv1 : IFormattable
{
static Uuidv1()
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Uuid1
{
public struct Uuidv1 : IFormattable
{
static Uuidv1()
@vanbukin
vanbukin / Types.cs
Last active May 18, 2019 15:35
Fast UUIDv1
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Dodo.Types
{
[StructLayout(LayoutKind.Sequential, Size = 16, CharSet = CharSet.Ansi, Pack = 1)]
public struct Uuidv1
{
static Uuidv1()