Copy Aetheria Code

Added a bunch of code from the old Aetheria project
This commit is contained in:
hyperion51 2020-02-27 18:51:07 +00:00
commit c58ba0b1da
1704 changed files with 175081 additions and 313 deletions

View file

@ -1,33 +0,0 @@
// Copyright (c) All contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace MessagePack
{
#if MESSAGEPACK_INTERNAL
internal
#else
public
#endif
struct ExtensionHeader : IEquatable<ExtensionHeader>
{
public sbyte TypeCode { get; private set; }
public uint Length { get; private set; }
public ExtensionHeader(sbyte typeCode, uint length)
{
this.TypeCode = typeCode;
this.Length = length;
}
public ExtensionHeader(sbyte typeCode, int length)
{
this.TypeCode = typeCode;
this.Length = (uint)length;
}
public bool Equals(ExtensionHeader other) => this.TypeCode == other.TypeCode && this.Length == other.Length;
}
}