mirror of
https://github.com/StarBeat/UnityDependencyAnalyzer.git
synced 2026-03-08 05:35:27 +08:00
41 lines
1014 B
C#
41 lines
1014 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net.Http;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
#nullable enable
|
|
namespace MemoryPack
|
|
{
|
|
public record MemoryPackSerializerOptions
|
|
{
|
|
// Default is Utf8
|
|
public static readonly MemoryPackSerializerOptions Default = new MemoryPackSerializerOptions { StringEncoding = StringEncoding.Utf8 };
|
|
|
|
public static readonly MemoryPackSerializerOptions Utf8 = Default with { StringEncoding = StringEncoding.Utf8 };
|
|
public static readonly MemoryPackSerializerOptions Utf16 = Default with { StringEncoding = StringEncoding.Utf16 };
|
|
|
|
public StringEncoding StringEncoding { get; init; }
|
|
public IServiceProvider? ServiceProvider { get; init; }
|
|
}
|
|
|
|
public enum StringEncoding : byte
|
|
{
|
|
Utf16,
|
|
Utf8,
|
|
}
|
|
}
|
|
|
|
#if !NET5_0_OR_GREATER
|
|
|
|
namespace System.Runtime.CompilerServices
|
|
{
|
|
internal sealed class IsExternalInit
|
|
{
|
|
}
|
|
}
|
|
|
|
#endif
|