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,34 +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;
using System.Buffers;
namespace MessagePack
{
#if MESSAGEPACK_INTERNAL
internal
#else
public
#endif
struct ExtensionResult
{
public ExtensionResult(sbyte typeCode, Memory<byte> data)
{
this.TypeCode = typeCode;
this.Data = new ReadOnlySequence<byte>(data);
}
public ExtensionResult(sbyte typeCode, ReadOnlySequence<byte> data)
{
this.TypeCode = typeCode;
this.Data = data;
}
public sbyte TypeCode { get; private set; }
public ReadOnlySequence<byte> Data { get; private set; }
public ExtensionHeader Header => new ExtensionHeader(this.TypeCode, (uint)this.Data.Length);
}
}