├── .editorconfig ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── Bug_report.md │ └── Feature_request.md └── workflows │ └── stale.yml ├── .gitignore ├── CONTRIBUTING.md ├── CONTRIBUTORS ├── Directory.Build.props ├── Directory.Build.rsp ├── LICENSE ├── MessagePack.ruleset ├── MessagePack.sln ├── README.md ├── SECURITY.md ├── azure-pipelines.yml ├── azure-pipelines ├── Darwin.runsettings ├── Get-NuGetTool.ps1 ├── Get-ProcDump.ps1 ├── Get-TempToolsPath.ps1 ├── Get-nbgv.ps1 ├── Linux.runsettings ├── Windows_NT.runsettings ├── artifacts │ ├── Variables.ps1 │ ├── _all.ps1 │ ├── _pipelines.ps1 │ ├── _stage_all.ps1 │ ├── build_logs.ps1 │ ├── mpc.ps1 │ ├── nuget.ps1 │ ├── projectAssetsJson.ps1 │ ├── unity.ps1 │ └── vsix.ps1 ├── build.yml ├── build_nonWindows.yml ├── build_unity.yml ├── install-dependencies.yml ├── justnugetorg.nuget.config ├── release.yml └── variables │ ├── DotNetSdkVersion.ps1 │ ├── _all.ps1 │ └── _pipelines.ps1 ├── benchmark ├── ExperimentalBenchmark │ ├── ExperimentalBenchmark.csproj │ ├── MessagePack_2_1_165.dll │ ├── Program.cs │ └── Tests.cs └── SerializerBenchmark │ ├── BenchmarkConfig.cs │ ├── ExtensionMethods.cs │ ├── Fixture │ ├── BooleanValueFixture.cs │ ├── ByteValueFixture.cs │ ├── DateTimeOffsetValueFixture.cs │ ├── DateTimeValueFixture.cs │ ├── DecimalValueFixture.cs │ ├── DoubleValueFixture.cs │ ├── EnumValueFixture.cs │ ├── ExpressionTreeFixture.cs │ ├── FloatValueFixture.cs │ ├── GuidValueFixture.cs │ ├── IValueFixture.cs │ ├── IntValueFixture.cs │ ├── LongValueFixture.cs │ ├── OtherPrimitiveFixtures.cs │ ├── ShortValueFixture.cs │ └── StringValueFixture.cs │ ├── IGenericEquality`1.cs │ ├── MessagePack_1_7_3_6.dll │ ├── Models │ ├── AccessToken.cs │ ├── AccountMerge.cs │ ├── Answer.cs │ ├── Badge.cs │ ├── Comment.cs │ ├── Error.cs │ ├── Event.cs │ ├── Feed.cs │ ├── FlagOption.cs │ ├── InboxItem.cs │ ├── Info.cs │ ├── NetworkUser.cs │ ├── Notification.cs │ ├── Post.cs │ ├── Privilege.cs │ ├── Question.cs │ ├── QuestionTimeline.cs │ ├── Reputation.cs │ ├── ReputationHistory.cs │ ├── Revision.cs │ ├── SearchExcerpt.cs │ ├── ShallowUser.cs │ ├── SuggestedEdit.cs │ ├── Tag.cs │ ├── TagScore.cs │ ├── TagSynonym.cs │ ├── TagWiki.cs │ ├── TopTag.cs │ ├── User.cs │ ├── UserTimeline.cs │ └── WritePermission.cs │ ├── OdinSerializer.dll │ ├── Program.cs │ ├── SerializerBenchmark.cs │ ├── SerializerBenchmark.csproj │ ├── SerializerBenchmark.ruleset │ └── Serializers │ ├── BinaryFormatterSerializer.cs │ ├── BsonNetSerializer.cs │ ├── CerasSerializer.cs │ ├── DataContractSerializer.cs │ ├── FsPicklerSerializer.cs │ ├── HagarSerializer.cs │ ├── HyperionSerializer.cs │ ├── JilSerializer.cs │ ├── JsonNetSerializer.cs │ ├── MessagePackSerializer.cs │ ├── MsgPackCliSerializer.cs │ ├── OdinSerializer.cs │ ├── ProtobufNetSerializer.cs │ ├── SerializerBase.cs │ ├── SpanJsonSerializer.cs │ ├── SystemTextJsonSerializer.cs │ └── Utf8JsonSerializer.cs ├── doc ├── ExpandoObject.md ├── analyzers │ ├── MsgPack001.md │ ├── MsgPack002.md │ ├── MsgPack003.md │ ├── MsgPack004.md │ ├── MsgPack005.md │ └── index.md ├── consume_ci.md ├── migration.md └── msbuildtask.md ├── global.json ├── graph.xlsx ├── init.cmd ├── init.ps1 ├── installcredprovider.ps1 ├── opensource.snk ├── prepare_release.ps1 ├── sandbox ├── DynamicCodeDumper │ ├── DynamicCodeDumper.csproj │ └── Program.cs ├── MessagePack.Internal │ ├── AssemblyInfo.cs │ └── MessagePack.Internal.csproj ├── PerfBenchmarkDotNet │ ├── BenchmarkConfig.cs │ ├── ContractType.cs │ ├── ContractlessType.cs │ ├── DeserializeBenchmark.cs │ ├── DictionaryLookupCompare.cs │ ├── GeneratedFormatter.cs │ ├── GuidImprov.cs │ ├── ImproveStringKeySerializeBenchmark.cs │ ├── IntKeySerializerTarget.cs │ ├── Lz4Benchmark.cs │ ├── Lz4PrimitiveBenchmark.cs │ ├── MessagePackReaderBenchmark.cs │ ├── MessagePackWriterBenchmark.cs │ ├── MessagePack_1_4_4.dll │ ├── MessagePack_1_6_0_3.dll │ ├── NewVsOld.cs │ ├── PerfBenchmarkDotNet.csproj │ ├── Program.cs │ ├── Resolver.cs │ ├── SerializeBenchmark.cs │ ├── SpanBenchmarks.cs │ ├── StringKeyDeserializeCompare.cs │ ├── StringKeySerializerTarget.cs │ ├── StringKeySerializerTarget2.cs │ ├── TypelessDeserializeBenchmark.cs │ ├── TypelessPrimitiveType.cs │ └── TypelessSerializeBenchmark.cs ├── PerfNetFramework │ ├── BenchmarkEventSource.cs │ ├── Measure.cs │ ├── PerfNetFramework.csproj │ ├── Person.cs │ ├── Program.cs │ ├── README.md │ └── Sex.cs ├── Sandbox │ ├── Generated.cs │ ├── Program.cs │ ├── Sandbox.csproj │ ├── codegen.bat │ └── codegen.ps1 ├── SharedData │ └── SharedData.csproj ├── TestData.InvalidProject │ ├── Class1.cs │ └── TestData.InvalidProject.csproj ├── TestData.InvalidSyntax │ ├── Class1.cs │ └── TestData.InvalidSyntax.csproj ├── TestData2 │ ├── A.cs │ ├── B.cs │ ├── C.cs │ ├── Generated.cs │ ├── NestedTypeCheck.cs │ ├── PropNameCheck1.cs │ ├── PropNameCheck2.cs │ ├── Record.cs │ ├── TestData2.csproj │ ├── codegen.bat │ └── codegen.ps1 └── codegen.ps1 ├── src ├── Directory.Build.targets ├── MessagePack.Annotations │ └── MessagePack.Annotations.csproj ├── MessagePack.AspNetCoreMvcFormatter │ ├── MessagePack.AspNetCoreMvcFormatter.csproj │ ├── MessagePackInputFormatter.cs │ └── MessagePackOutputFormatter.cs ├── MessagePack.Experimental │ ├── Experimental.md │ ├── HardwareIntrinsics │ │ ├── FormatterHelpers.cs │ │ ├── FormatterHelpers.tt │ │ ├── Formatters.cs │ │ ├── HardwareIntrinsics.md │ │ ├── PrimitiveArrayGetFormatterHelper.cs │ │ ├── PrimitiveArrayGetFormatterHelper.tt │ │ ├── PrimitiveArrayResolver.cs │ │ └── UnsafeMemoryAlignmentUtility.cs │ ├── MessagePack.Experimental.csproj │ └── UnsafeUnmanagedStructFormatter │ │ ├── UnsafeUnmanagedStructArrayFormatter.cs │ │ ├── UnsafeUnmanagedStructFormatter.cs │ │ ├── UnsafeUnmanagedStructFormatter.md │ │ ├── UnsafeUnmanagedStructMemoryFormatter.cs │ │ ├── UnsafeUnmanagedStructReadOnlyMemoryFormatter.cs │ │ └── UnsafeUnmanagedStructReadOnlySequenceFormatter.cs ├── MessagePack.Generator │ ├── .editorconfig │ ├── MessagePack.Generator.csproj │ ├── MessagepackCompiler.cs │ └── PseudoCompilation.cs ├── MessagePack.GeneratorCore │ ├── .editorconfig │ ├── CodeAnalysis │ │ ├── Definitions.cs │ │ └── TypeCollector.cs │ ├── CodeGenerator.cs │ ├── Generator │ │ ├── EnumTemplate.cs │ │ ├── EnumTemplate.tt │ │ ├── FormatterTemplate.cs │ │ ├── FormatterTemplate.tt │ │ ├── IFormatterTemplate.cs │ │ ├── ResolverTemplate.cs │ │ ├── ResolverTemplate.tt │ │ ├── ShouldUseFormatterResolverHelper.cs │ │ ├── StringKey │ │ │ ├── EmbedStringHelper.cs │ │ │ ├── StringKeyFormatterDeserializeHelper.cs │ │ │ ├── StringKeyFormatterTemplate.cs │ │ │ └── StringKeyFormatterTemplate.tt │ │ ├── TemplatePartials.cs │ │ ├── UnionTemplate.cs │ │ └── UnionTemplate.tt │ ├── MessagePack.GeneratorCore.csproj │ ├── MessagePack.UniversalCodeGenerator.ruleset │ └── Utils │ │ └── RoslynExtensions.cs ├── MessagePack.ImmutableCollection │ ├── AssemblyInfo.cs │ └── MessagePack.ImmutableCollection.csproj ├── MessagePack.MSBuild.Tasks │ ├── MessagePack.MSBuild.Tasks.csproj │ ├── MessagePackGenerator.cs │ └── build │ │ ├── MessagePack.MSBuild.Tasks.props │ │ └── MessagePack.MSBuild.Tasks.targets ├── MessagePack.ReactiveProperty │ ├── Formatters.cs │ ├── MessagePack.ReactiveProperty.csproj │ └── ReactivePropertyResolver.cs ├── MessagePack.UnityClient │ ├── .gitignore │ ├── Assets │ │ ├── .gitignore │ │ ├── Plugins.meta │ │ ├── RuntimeUnitTestToolkit.meta │ │ ├── RuntimeUnitTestToolkit │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ │ ├── HierarchyTreeBuilder.cs │ │ │ │ ├── HierarchyTreeBuilder.cs.meta │ │ │ │ ├── UnitTestBuilder.MenuItems.cs │ │ │ │ ├── UnitTestBuilder.MenuItems.cs.meta │ │ │ │ ├── UnitTestBuilder.cs │ │ │ │ └── UnitTestBuilder.cs.meta │ │ │ ├── RuntimeUnitTestToolkit.asmdef │ │ │ ├── RuntimeUnitTestToolkit.asmdef.meta │ │ │ ├── UnitTestRunner.cs │ │ │ ├── UnitTestRunner.cs.meta │ │ │ ├── package.json │ │ │ └── package.json.meta │ │ ├── Scenes.meta │ │ ├── Scenes │ │ │ ├── Sandbox.unity │ │ │ ├── Sandbox.unity.meta │ │ │ ├── SandboxBehaviour.cs │ │ │ └── SandboxBehaviour.cs.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ ├── PackageExporter.cs │ │ │ └── PackageExporter.cs.meta │ │ │ ├── MessagePack.meta │ │ │ ├── MessagePack │ │ │ ├── Annotations.meta │ │ │ ├── Annotations │ │ │ │ ├── Attributes.cs │ │ │ │ ├── Attributes.cs.meta │ │ │ │ ├── IMessagePackSerializationCallbackReceiver.cs │ │ │ │ ├── IMessagePackSerializationCallbackReceiver.cs.meta │ │ │ │ ├── MessagePack.Annotations.asmdef │ │ │ │ └── MessagePack.Annotations.asmdef.meta │ │ │ ├── BitOperations.cs │ │ │ ├── BitOperations.cs.meta │ │ │ ├── BufferWriter.cs │ │ │ ├── BufferWriter.cs.meta │ │ │ ├── ExtensionHeader.cs │ │ │ ├── ExtensionHeader.cs.meta │ │ │ ├── ExtensionResult.cs │ │ │ ├── ExtensionResult.cs.meta │ │ │ ├── Formatters.meta │ │ │ ├── Formatters │ │ │ │ ├── CollectionFormatter.cs │ │ │ │ ├── CollectionFormatter.cs.meta │ │ │ │ ├── CollectionHelpers`2.cs │ │ │ │ ├── CollectionHelpers`2.cs.meta │ │ │ │ ├── DateTimeFormatters.cs │ │ │ │ ├── DateTimeFormatters.cs.meta │ │ │ │ ├── DictionaryFormatter.cs │ │ │ │ ├── DictionaryFormatter.cs.meta │ │ │ │ ├── DynamicObjectTypeFallbackFormatter.cs │ │ │ │ ├── DynamicObjectTypeFallbackFormatter.cs.meta │ │ │ │ ├── EnumAsStringFormatter`1.cs │ │ │ │ ├── EnumAsStringFormatter`1.cs.meta │ │ │ │ ├── ExpandoObjectFormatter.cs │ │ │ │ ├── ExpandoObjectFormatter.cs.meta │ │ │ │ ├── GenericEnumFormatter`1.cs │ │ │ │ ├── GenericEnumFormatter`1.cs.meta │ │ │ │ ├── IMessagePackFormatter`1.cs │ │ │ │ ├── IMessagePackFormatter`1.cs.meta │ │ │ │ ├── IgnoreFormatter`1.cs │ │ │ │ ├── IgnoreFormatter`1.cs.meta │ │ │ │ ├── MultiDimensionalArrayFormatter.cs │ │ │ │ ├── MultiDimensionalArrayFormatter.cs.meta │ │ │ │ ├── NilFormatter.cs │ │ │ │ ├── NilFormatter.cs.meta │ │ │ │ ├── NullableFormatter.cs │ │ │ │ ├── NullableFormatter.cs.meta │ │ │ │ ├── PrimitiveObjectFormatter.cs │ │ │ │ ├── PrimitiveObjectFormatter.cs.meta │ │ │ │ ├── StandardClassLibraryFormatter.cs │ │ │ │ ├── StandardClassLibraryFormatter.cs.meta │ │ │ │ ├── StringInterningFormatter.cs │ │ │ │ ├── StringInterningFormatter.cs.meta │ │ │ │ ├── TypelessFormatter.cs │ │ │ │ ├── TypelessFormatter.cs.meta │ │ │ │ ├── UnsafeBinaryFormatters.cs │ │ │ │ └── UnsafeBinaryFormatters.cs.meta │ │ │ ├── HashCode.cs │ │ │ ├── HashCode.cs.meta │ │ │ ├── IFormatterResolver.cs │ │ │ ├── IFormatterResolver.cs.meta │ │ │ ├── Internal.meta │ │ │ ├── Internal │ │ │ │ ├── AsymmetricKeyHashTable.cs │ │ │ │ ├── AsymmetricKeyHashTable.cs.meta │ │ │ │ ├── AutomataDictionary.cs │ │ │ │ ├── AutomataDictionary.cs.meta │ │ │ │ ├── ByteArrayStringHashTable.cs │ │ │ │ ├── ByteArrayStringHashTable.cs.meta │ │ │ │ ├── CodeGenHelpers.cs │ │ │ │ ├── CodeGenHelpers.cs.meta │ │ │ │ ├── DateTimeConstants.cs │ │ │ │ ├── DateTimeConstants.cs.meta │ │ │ │ ├── DynamicAssembly.cs │ │ │ │ ├── DynamicAssembly.cs.meta │ │ │ │ ├── ExpressionUtility.cs │ │ │ │ ├── ExpressionUtility.cs.meta │ │ │ │ ├── FarmHash.cs │ │ │ │ ├── FarmHash.cs.meta │ │ │ │ ├── GuidBits.cs │ │ │ │ ├── GuidBits.cs.meta │ │ │ │ ├── ILGeneratorExtensions.cs │ │ │ │ ├── ILGeneratorExtensions.cs.meta │ │ │ │ ├── ReflectionExtensions.cs │ │ │ │ ├── ReflectionExtensions.cs.meta │ │ │ │ ├── RuntimeTypeHandleEqualityComparer.cs │ │ │ │ ├── RuntimeTypeHandleEqualityComparer.cs.meta │ │ │ │ ├── Sequence`1.cs │ │ │ │ ├── Sequence`1.cs.meta │ │ │ │ ├── ThreadsafeTypeKeyHashTable.cs │ │ │ │ ├── ThreadsafeTypeKeyHashTable.cs.meta │ │ │ │ ├── TinyJsonReader.cs │ │ │ │ ├── TinyJsonReader.cs.meta │ │ │ │ ├── UnsafeMemory.Low.cs │ │ │ │ └── UnsafeMemory.Low.cs.meta │ │ │ ├── LZ4.meta │ │ │ ├── LZ4 │ │ │ │ ├── LZ4Codec.Helper.cs │ │ │ │ ├── LZ4Codec.Helper.cs.meta │ │ │ │ ├── LZ4Codec.Safe.cs │ │ │ │ ├── LZ4Codec.Safe.cs.meta │ │ │ │ ├── LZ4Codec.Safe32.Dirty.cs │ │ │ │ ├── LZ4Codec.Safe32.Dirty.cs.meta │ │ │ │ ├── LZ4Codec.Safe64.Dirty.cs │ │ │ │ ├── LZ4Codec.Safe64.Dirty.cs.meta │ │ │ │ ├── LZ4Codec.Unsafe.cs │ │ │ │ ├── LZ4Codec.Unsafe.cs.meta │ │ │ │ ├── LZ4Codec.Unsafe32.Dirty.cs │ │ │ │ ├── LZ4Codec.Unsafe32.Dirty.cs.meta │ │ │ │ ├── LZ4Codec.Unsafe64.Dirty.cs │ │ │ │ ├── LZ4Codec.Unsafe64.Dirty.cs.meta │ │ │ │ ├── LZ4Codec.cs │ │ │ │ └── LZ4Codec.cs.meta │ │ │ ├── MessagePack.asmdef │ │ │ ├── MessagePack.asmdef.meta │ │ │ ├── MessagePackCode.cs │ │ │ ├── MessagePackCode.cs.meta │ │ │ ├── MessagePackCompression.cs │ │ │ ├── MessagePackCompression.cs.meta │ │ │ ├── MessagePackReader.cs │ │ │ ├── MessagePackReader.cs.meta │ │ │ ├── MessagePackSecurity.cs │ │ │ ├── MessagePackSecurity.cs.meta │ │ │ ├── MessagePackSerializationException.cs │ │ │ ├── MessagePackSerializationException.cs.meta │ │ │ ├── MessagePackSerializer.Json.cs │ │ │ ├── MessagePackSerializer.Json.cs.meta │ │ │ ├── MessagePackSerializer.NonGeneric.cs │ │ │ ├── MessagePackSerializer.NonGeneric.cs.meta │ │ │ ├── MessagePackSerializer.cs │ │ │ ├── MessagePackSerializer.cs.meta │ │ │ ├── MessagePackSerializerOptions.cs │ │ │ ├── MessagePackSerializerOptions.cs.meta │ │ │ ├── MessagePackStreamReader.cs │ │ │ ├── MessagePackStreamReader.cs.meta │ │ │ ├── MessagePackWriter.cs │ │ │ ├── MessagePackWriter.cs.meta │ │ │ ├── MonoProtection.cs │ │ │ ├── MonoProtection.cs.meta │ │ │ ├── Nil.cs │ │ │ ├── Nil.cs.meta │ │ │ ├── Resolvers.meta │ │ │ ├── Resolvers │ │ │ │ ├── AttributeFormatterResolver.cs │ │ │ │ ├── AttributeFormatterResolver.cs.meta │ │ │ │ ├── BuiltinResolver.cs │ │ │ │ ├── BuiltinResolver.cs.meta │ │ │ │ ├── CachingFormatterResolver.cs │ │ │ │ ├── CachingFormatterResolver.cs.meta │ │ │ │ ├── CompositeResolver.cs │ │ │ │ ├── CompositeResolver.cs.meta │ │ │ │ ├── ContractlessReflectionObjectResolver.cs │ │ │ │ ├── ContractlessReflectionObjectResolver.cs.meta │ │ │ │ ├── DynamicEnumAsStringResolver.cs │ │ │ │ ├── DynamicEnumAsStringResolver.cs.meta │ │ │ │ ├── DynamicEnumResolver.cs │ │ │ │ ├── DynamicEnumResolver.cs.meta │ │ │ │ ├── DynamicGenericResolver.cs │ │ │ │ ├── DynamicGenericResolver.cs.meta │ │ │ │ ├── DynamicObjectResolver.cs │ │ │ │ ├── DynamicObjectResolver.cs.meta │ │ │ │ ├── DynamicUnionResolver.cs │ │ │ │ ├── DynamicUnionResolver.cs.meta │ │ │ │ ├── ExpandoObjectResolver.cs │ │ │ │ ├── ExpandoObjectResolver.cs.meta │ │ │ │ ├── NativeDateTimeResolver.cs │ │ │ │ ├── NativeDateTimeResolver.cs.meta │ │ │ │ ├── NativeDecimalResolver.cs │ │ │ │ ├── NativeDecimalResolver.cs.meta │ │ │ │ ├── NativeGuidResolver.cs │ │ │ │ ├── NativeGuidResolver.cs.meta │ │ │ │ ├── PrimitiveObjectResolver.cs │ │ │ │ ├── PrimitiveObjectResolver.cs.meta │ │ │ │ ├── ResolverUtilities.cs │ │ │ │ ├── ResolverUtilities.cs.meta │ │ │ │ ├── StandardResolver.cs │ │ │ │ ├── StandardResolver.cs.meta │ │ │ │ ├── StaticCompositeResolver.cs │ │ │ │ ├── StaticCompositeResolver.cs.meta │ │ │ │ ├── TypelessContractlessStandardResolver.cs │ │ │ │ ├── TypelessContractlessStandardResolver.cs.meta │ │ │ │ ├── TypelessObjectResolver.cs │ │ │ │ └── TypelessObjectResolver.cs.meta │ │ │ ├── SafeBitConverter.cs │ │ │ ├── SafeBitConverter.cs.meta │ │ │ ├── SequencePool.cs │ │ │ ├── SequencePool.cs.meta │ │ │ ├── SequenceReader.cs │ │ │ ├── SequenceReader.cs.meta │ │ │ ├── SequenceReaderExtensions.cs │ │ │ ├── SequenceReaderExtensions.cs.meta │ │ │ ├── SipHash.cs │ │ │ ├── SipHash.cs.meta │ │ │ ├── StreamPolyfillExtensions.cs │ │ │ ├── StreamPolyfillExtensions.cs.meta │ │ │ ├── StringEncoding.cs │ │ │ ├── StringEncoding.cs.meta │ │ │ ├── T4.meta │ │ │ ├── T4 │ │ │ │ ├── ForceSizePrimitiveFormatter.cs │ │ │ │ ├── ForceSizePrimitiveFormatter.cs.meta │ │ │ │ ├── MessagePackReader.Integers.cs │ │ │ │ ├── MessagePackReader.Integers.cs.meta │ │ │ │ ├── PrimitiveFormatter.cs │ │ │ │ ├── PrimitiveFormatter.cs.meta │ │ │ │ ├── TupleFormatter.cs │ │ │ │ ├── TupleFormatter.cs.meta │ │ │ │ ├── UnsafeMemory.cs │ │ │ │ ├── UnsafeMemory.cs.meta │ │ │ │ ├── ValueTupleFormatter.cs │ │ │ │ └── ValueTupleFormatter.cs.meta │ │ │ ├── ThisLibraryExtensionTypeCodes.cs │ │ │ ├── ThisLibraryExtensionTypeCodes.cs.meta │ │ │ ├── Unity.meta │ │ │ ├── Unity │ │ │ │ ├── Extension.meta │ │ │ │ ├── Extension │ │ │ │ │ ├── UnityBlitResolver.cs │ │ │ │ │ ├── UnityBlitResolver.cs.meta │ │ │ │ │ ├── UnsafeBlitFormatter.cs │ │ │ │ │ └── UnsafeBlitFormatter.cs.meta │ │ │ │ ├── Formatters.cs │ │ │ │ ├── Formatters.cs.meta │ │ │ │ ├── MessagePackWindow.cs │ │ │ │ ├── MessagePackWindow.cs.meta │ │ │ │ ├── UnityResolver.cs │ │ │ │ └── UnityResolver.cs.meta │ │ │ ├── Utilities.cs │ │ │ ├── Utilities.cs.meta │ │ │ ├── _InternalVisibleTo.cs │ │ │ ├── _InternalVisibleTo.cs.meta │ │ │ ├── package.json │ │ │ └── package.json.meta │ │ │ ├── Tests.meta │ │ │ └── Tests │ │ │ ├── Class1.cs │ │ │ ├── Class1.cs.meta │ │ │ ├── Generated.meta │ │ │ ├── Generated │ │ │ ├── GeneratedResolver.cs │ │ │ └── GeneratedResolver.cs.meta │ │ │ ├── Loader.cs │ │ │ ├── Loader.cs.meta │ │ │ ├── MsgPack.meta │ │ │ ├── MsgPack │ │ │ ├── MsgPack.dll │ │ │ └── MsgPack.dll.meta │ │ │ ├── ShareTests.meta │ │ │ ├── ShareTests │ │ │ ├── AllowPrivateTest.cs │ │ │ ├── AllowPrivateTest.cs.meta │ │ │ ├── AnonymousTypeTest.cs │ │ │ ├── AnonymousTypeTest.cs.meta │ │ │ ├── AutomataTests.cs │ │ │ ├── AutomataTests.cs.meta │ │ │ ├── ByteArrayComparerTest.cs │ │ │ ├── ByteArrayComparerTest.cs.meta │ │ │ ├── ByteArrayStringHashTableTest.cs │ │ │ ├── ByteArrayStringHashTableTest.cs.meta │ │ │ ├── CollectionTest.cs │ │ │ ├── CollectionTest.cs.meta │ │ │ ├── ContractlessStandardResolverTest.cs │ │ │ ├── ContractlessStandardResolverTest.cs.meta │ │ │ ├── DataContractTest.cs │ │ │ ├── DataContractTest.cs.meta │ │ │ ├── DictionaryTest.cs │ │ │ ├── DictionaryTest.cs.meta │ │ │ ├── DynamicObjectFallbackTest.cs │ │ │ ├── DynamicObjectFallbackTest.cs.meta │ │ │ ├── DynamicObjectResolverConstructorTest.cs │ │ │ ├── DynamicObjectResolverConstructorTest.cs.meta │ │ │ ├── DynamicObjectResolverDerivedAttributeInheritanceTest.cs │ │ │ ├── DynamicObjectResolverDerivedAttributeInheritanceTest.cs.meta │ │ │ ├── DynamicObjectResolverInterfaceTest.cs │ │ │ ├── DynamicObjectResolverInterfaceTest.cs.meta │ │ │ ├── DynamicObjectResolverOrderTest.cs │ │ │ ├── DynamicObjectResolverOrderTest.cs.meta │ │ │ ├── DynamicObjectResolverTests.cs │ │ │ ├── DynamicObjectResolverTests.cs.meta │ │ │ ├── EnumAsStringTest.cs │ │ │ ├── EnumAsStringTest.cs.meta │ │ │ ├── ExpandoObjectTests.cs │ │ │ ├── ExpandoObjectTests.cs.meta │ │ │ ├── ExtensionHeaderTests.cs │ │ │ ├── ExtensionHeaderTests.cs.meta │ │ │ ├── FloatConversionTest.cs │ │ │ ├── FloatConversionTest.cs.meta │ │ │ ├── FormatterTest.cs │ │ │ ├── FormatterTest.cs.meta │ │ │ ├── GenericFormatters.cs │ │ │ ├── GenericFormatters.cs.meta │ │ │ ├── IgnoreTest.cs │ │ │ ├── IgnoreTest.cs.meta │ │ │ ├── LZ4Test.cs │ │ │ ├── LZ4Test.cs.meta │ │ │ ├── MessagePackBinaryTest.cs │ │ │ ├── MessagePackBinaryTest.cs.meta │ │ │ ├── MessagePackFormatterPerFieldTest.cs │ │ │ ├── MessagePackFormatterPerFieldTest.cs.meta │ │ │ ├── MessagePackReaderTests.ReadString.cs │ │ │ ├── MessagePackReaderTests.ReadString.cs.meta │ │ │ ├── MessagePackReaderTests.cs │ │ │ ├── MessagePackReaderTests.cs.meta │ │ │ ├── MessagePackSecurityTests.cs │ │ │ ├── MessagePackSecurityTests.cs.meta │ │ │ ├── MessagePackSerializerOptionsTests.cs │ │ │ ├── MessagePackSerializerOptionsTests.cs.meta │ │ │ ├── MessagePackSerializerTest.cs │ │ │ ├── MessagePackSerializerTest.cs.meta │ │ │ ├── MessagePackSerializerTypelessTests.cs │ │ │ ├── MessagePackSerializerTypelessTests.cs.meta │ │ │ ├── MessagePackStreamReaderTests.cs │ │ │ ├── MessagePackStreamReaderTests.cs.meta │ │ │ ├── MessagePackWriterTests.cs │ │ │ ├── MessagePackWriterTests.cs.meta │ │ │ ├── MultiDimensionalArrayTest.cs │ │ │ ├── MultiDimensionalArrayTest.cs.meta │ │ │ ├── MultibyteCharPropertyTest.cs │ │ │ ├── MultibyteCharPropertyTest.cs.meta │ │ │ ├── NewGuidFormatterTest.cs │ │ │ ├── NewGuidFormatterTest.cs.meta │ │ │ ├── NonGenericCollectionTest.cs │ │ │ ├── NonGenericCollectionTest.cs.meta │ │ │ ├── ObjectResolverTest.cs │ │ │ ├── ObjectResolverTest.cs.meta │ │ │ ├── OldSpecBinaryFormatterTest.cs │ │ │ ├── OldSpecBinaryFormatterTest.cs.meta │ │ │ ├── OneByteAtATimeStream.cs │ │ │ ├── OneByteAtATimeStream.cs.meta │ │ │ ├── PrimitiveObjectFormatterTests.cs │ │ │ ├── PrimitiveObjectFormatterTests.cs.meta │ │ │ ├── PrimitiveResolverTest.cs │ │ │ ├── PrimitiveResolverTest.cs.meta │ │ │ ├── PrimitivelikeFormatterTest.cs │ │ │ ├── PrimitivelikeFormatterTest.cs.meta │ │ │ ├── SipHashTests.cs │ │ │ ├── SipHashTests.cs.meta │ │ │ ├── SpecifiedFormatterResolverTest.cs │ │ │ ├── SpecifiedFormatterResolverTest.cs.meta │ │ │ ├── StandardClassLibraryFormatterTests.cs │ │ │ ├── StandardClassLibraryFormatterTests.cs.meta │ │ │ ├── StringInterningTests.cs │ │ │ ├── StringInterningTests.cs.meta │ │ │ ├── T4.meta │ │ │ ├── T4 │ │ │ │ ├── MessagePackReaderTests.ReadInt.cs │ │ │ │ └── MessagePackReaderTests.ReadInt.cs.meta │ │ │ ├── TestBase.cs │ │ │ ├── TestBase.cs.meta │ │ │ ├── TestConstants.cs │ │ │ ├── TestConstants.cs.meta │ │ │ ├── TestUtilities.cs │ │ │ ├── TestUtilities.cs.meta │ │ │ ├── ToJsonTest.cs │ │ │ ├── ToJsonTest.cs.meta │ │ │ ├── UnionResolverTest.cs │ │ │ ├── UnionResolverTest.cs.meta │ │ │ ├── UnsafeFormattersTest.cs │ │ │ ├── UnsafeFormattersTest.cs.meta │ │ │ ├── UnsafeMemoryTest.cs │ │ │ ├── UnsafeMemoryTest.cs.meta │ │ │ ├── Utils.meta │ │ │ ├── Utils │ │ │ │ ├── ChainingAssertion.Ext.cs │ │ │ │ └── ChainingAssertion.Ext.cs.meta │ │ │ ├── ValueTupleTest.cs │ │ │ └── ValueTupleTest.cs.meta │ │ │ ├── Shims.meta │ │ │ ├── Shims │ │ │ ├── ChainingAssertion.Unity.cs │ │ │ ├── ChainingAssertion.Unity.cs.meta │ │ │ ├── XUnit.cs │ │ │ └── XUnit.cs.meta │ │ │ ├── Tests.asmdef │ │ │ └── Tests.asmdef.meta │ ├── ProjectSettings │ │ ├── AudioManager.asset │ │ ├── ClusterInputManager.asset │ │ ├── DynamicsManager.asset │ │ ├── EditorBuildSettings.asset │ │ ├── EditorSettings.asset │ │ ├── GraphicsSettings.asset │ │ ├── InputManager.asset │ │ ├── NavMeshAreas.asset │ │ ├── NetworkManager.asset │ │ ├── Physics2DSettings.asset │ │ ├── PresetManager.asset │ │ ├── ProjectSettings.asset │ │ ├── ProjectVersion.txt │ │ ├── QualitySettings.asset │ │ ├── TagManager.asset │ │ ├── TimeManager.asset │ │ ├── UnityConnectSettings.asset │ │ ├── VFXManager.asset │ │ └── XRSettings.asset │ ├── UWP │ │ └── project.json │ ├── build.bat │ ├── build.sh │ ├── code_generate.bat │ ├── copy_assets.bat │ ├── copy_assets.sh │ ├── test.bat │ ├── test.sh │ ├── unity_applylicense.sh │ └── unity_requestlicense.sh ├── MessagePack.UnityShims │ ├── MessagePack.UnityShims.csproj │ └── Shims.cs ├── MessagePack │ ├── BannedSymbols.txt │ ├── Formatters │ │ ├── ForceSizePrimitiveFormatter.cs │ │ ├── ForceSizePrimitiveFormatter.tt │ │ ├── ImmutableCollectionFormatters.cs │ │ ├── PrimitiveFormatter.cs │ │ ├── PrimitiveFormatter.tt │ │ ├── TupleFormatter.cs │ │ ├── TupleFormatter.tt │ │ ├── ValueTupleFormatter.cs │ │ └── ValueTupleFormatter.tt │ ├── Internal │ │ ├── UnsafeMemory.cs │ │ └── UnsafeMemory.tt │ ├── MessagePack.csproj │ ├── MessagePackReader.Integers.cs │ ├── MessagePackReader.Integers.tt │ ├── MessagePackSerializer+Typeless.cs │ ├── MessagePackStreamReader.Arrays.cs │ ├── MessagePackStreamReader.Maps.cs │ ├── Resolvers │ │ └── ImmutableCollectionResolver.cs │ ├── net5.0 │ │ ├── PublicAPI.Shipped.txt │ │ └── PublicAPI.Unshipped.txt │ ├── net6.0 │ │ ├── PublicAPI.Shipped.txt │ │ └── PublicAPI.Unshipped.txt │ ├── netcoreapp3.1 │ │ ├── PublicAPI.Shipped.txt │ │ └── PublicAPI.Unshipped.txt │ └── netstandard2.0 │ │ ├── PublicAPI.Shipped.txt │ │ └── PublicAPI.Unshipped.txt └── MessagePackAnalyzer │ ├── AnalyzerUtilities.cs │ ├── MessagePackAnalyzer.cs │ ├── MessagePackAnalyzer.csproj │ ├── MessagePackCodeFixProvider.cs │ ├── MsgPack001SpecifyOptionsAnalyzer.cs │ ├── MsgPack002UseConstantOptionsAnalyzer.cs │ ├── ReferenceSymbols.cs │ ├── Strings.Designer.cs │ ├── Strings.resx │ ├── TypeCollector.cs │ ├── Utils │ ├── ConfigurationLoader.cs │ ├── DiagnosticsReportContext.cs │ ├── RoslynAnalyzerExtensions.cs │ └── TinyJsonReader.cs │ └── tools │ ├── install.ps1 │ └── uninstall.ps1 ├── stylecop.json ├── tests ├── MessagePack.AspNetCoreMvcFormatter.Tests │ ├── AspNetCoreMvcFormatterTest.cs │ └── MessagePack.AspNetCoreMvcFormatter.Tests.csproj ├── MessagePack.Experimental.Tests │ ├── ArrayTests.cs │ ├── ArrayTests.tt │ ├── MessagePack.Experimental.Tests.csproj │ └── UnsafeUnmanagedStruct │ │ └── UnsafeUnmanagedStructTest.cs ├── MessagePack.GeneratedCode.Tests │ ├── MessagePack.GeneratedCode.Tests.csproj │ └── MissingPropertiesTest.cs ├── MessagePack.Generator.Tests │ ├── GenerateEnumFormatterTest.cs │ ├── GenerateGenericsFormatterTest.cs │ ├── GenerateKeyedFormatterTest.cs │ ├── GenerateMessagePackFormatterAttrTest.cs │ ├── GenerateStringKeyedFormatterTest.cs │ ├── MessagePack.Generator.Tests.csproj │ ├── TemporaryProjectWorkarea.cs │ └── TestUtilities.cs ├── MessagePack.Internal.Tests │ ├── MessagePack.Internal.Tests.csproj │ └── MessagePackInternalTest.cs ├── MessagePack.Tests │ ├── ContractlessStandardResolverConstructorTests.cs │ ├── DynamicObjectResolverRecordsTests.cs │ ├── ExtensionTests │ │ ├── ImmutableCollectionTest.cs │ │ ├── LZ4Test.cs │ │ ├── ReactivePropertyTest.cs │ │ └── UnityShimTest.cs │ ├── IsExternalInit.cs │ ├── MessagePack.Tests.csproj │ ├── MessagePack.Tests.ruleset │ ├── MessagePackReaderTests.ReadInt.cs │ ├── MessagePackReaderTests.ReadInt.tt │ ├── MessagePackStreamReaderArrayTests.cs │ ├── MessagePackStreamReaderMapTests.cs │ └── Utils │ │ └── ChainingAssertion.Xunit.cs └── MessagePackAnalyzer.Tests │ ├── .gitattributes │ ├── Helpers │ ├── CSharpCodeFixVerifier`2+Test.cs │ ├── CSharpCodeFixVerifier`2.cs │ ├── ReferencesHelper.cs │ ├── VisualBasicCodeFixVerifier`2+Test.cs │ └── VisualBasicCodeFixVerifier`2.cs │ ├── MessagePackAnalyzer.Tests.csproj │ ├── MessagePackAnalyzerTests.cs │ ├── MsgPack001SpecifyOptionsAnalyzerTests.cs │ └── MsgPack002UseConstantOptionsAnalyzerTests.cs ├── tools ├── Check-DotNetRuntime.ps1 ├── Check-DotNetSdk.ps1 ├── Install-DotNetSdk.ps1 ├── Install-NuGetCredProvider.ps1 └── Set-EnvVars.ps1 └── version.json /.github/ISSUE_TEMPLATE/Bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | #### Bug description 8 | 9 | A clear and concise description of what the bug is. 10 | 11 | #### Repro steps 12 | 13 | Code to reproduce the behavior. 14 | 15 | #### Expected behavior 16 | 17 | A clear and concise description of what you expected to happen. 18 | 19 | #### Actual behavior 20 | 21 | What happened instead of what you expected. 22 | 23 | - Version used: 24 | - Runtime: (e.g. .NET Framework, .NET Core, Unity, mono, etc.) 25 | 26 | #### Additional context 27 | 28 | Add any other context about the problem here. 29 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/Feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | #### Is your feature request related to a problem? Please describe. 8 | 9 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 10 | 11 | #### Describe the solution you'd like 12 | 13 | A clear and concise description of what you want to happen. 14 | 15 | #### Describe alternatives you've considered 16 | 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | #### Additional context 20 | 21 | Add any other context or screenshots about the feature request here. 22 | -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | name: Mark stale issues and pull requests 2 | 3 | on: 4 | schedule: 5 | - cron: "0 0 * * *" 6 | 7 | jobs: 8 | stale: 9 | 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/stale@v1 14 | with: 15 | repo-token: ${{ secrets.GITHUB_TOKEN }} 16 | days-before-stale: 90 17 | days-before-close: 5 18 | stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.' 19 | stale-issue-label: 'no-issue-activity' 20 | exempt-issue-label: 'awaiting-approval' 21 | stale-pr-message: 'This pull request is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.' 22 | stale-pr-label: 'no-pr-activity' 23 | exempt-pr-label: 'awaiting-approval' 24 | -------------------------------------------------------------------------------- /CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Yoshifumi Kawai 2 | Andrew Arnott 3 | -------------------------------------------------------------------------------- /Directory.Build.rsp: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------------ 2 | # This file contains command-line options that MSBuild will process as part of 3 | # every build, unless the "/noautoresponse" switch is specified. 4 | # 5 | # MSBuild processes the options in this file first, before processing the 6 | # options on the command line. As a result, options on the command line can 7 | # override the options in this file. However, depending on the options being 8 | # set, the overriding can also result in conflicts. 9 | # 10 | # NOTE: The "/noautoresponse" switch cannot be specified in this file, nor in 11 | # any response file that is referenced by this file. 12 | #------------------------------------------------------------------------------ 13 | /nr:false 14 | /m 15 | /verbosity:minimal 16 | /clp:Summary;ForceNoAlign 17 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | The .NET Core and ASP.NET Core support policy, including supported versions can be found at the [.NET Core Support Policy Page](https://dotnet.microsoft.com/platform/support/policy/dotnet-core). 6 | 7 | ## Reporting a Vulnerability 8 | 9 | Security issues and bugs should be reported privately to the Microsoft Security Response Center (MSRC), either by emailing secure@microsoft.com or via the portal at https://msrc.microsoft.com. 10 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your 11 | original message. Further information, including the MSRC PGP key, can be found in the [MSRC Report an Issue FAQ](https://www.microsoft.com/en-us/msrc/faqs-report-an-issue). 12 | 13 | Reports via MSRC may qualify for the .NET Core Bug Bounty. Details of the .NET Core Bug Bounty including terms and conditions are at [https://aka.ms/corebounty](https://aka.ms/corebounty). 14 | 15 | Please do not open issues for anything you think might have a security implication. 16 | -------------------------------------------------------------------------------- /azure-pipelines/Darwin.runsettings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /azure-pipelines/Get-NuGetTool.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Downloads the NuGet.exe tool and returns the path to it. 4 | .PARAMETER NuGetVersion 5 | The version of the NuGet tool to acquire. 6 | #> 7 | Param( 8 | [Parameter()] 9 | [string]$NuGetVersion='5.2.0' 10 | ) 11 | 12 | $toolsPath = & "$PSScriptRoot\Get-TempToolsPath.ps1" 13 | $binaryToolsPath = Join-Path $toolsPath $NuGetVersion 14 | if (!(Test-Path $binaryToolsPath)) { $null = mkdir $binaryToolsPath } 15 | $nugetPath = Join-Path $binaryToolsPath nuget.exe 16 | 17 | if (!(Test-Path $nugetPath)) { 18 | Write-Host "Downloading nuget.exe $NuGetVersion..." -ForegroundColor Yellow 19 | (New-Object System.Net.WebClient).DownloadFile("https://dist.nuget.org/win-x86-commandline/v$NuGetVersion/NuGet.exe", $nugetPath) 20 | } 21 | 22 | return (Resolve-Path $nugetPath).Path 23 | -------------------------------------------------------------------------------- /azure-pipelines/Get-ProcDump.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Downloads 32-bit and 64-bit procdump executables and returns the path to where they were installed. 4 | #> 5 | $version = '0.0.1' 6 | $baseDir = "$PSScriptRoot\..\obj\tools" 7 | $procDumpToolPath = "$baseDir\procdump.$version\bin" 8 | if (-not (Test-Path $procDumpToolPath)) { 9 | if (-not (Test-Path $baseDir)) { New-Item -Type Directory -Path $baseDir | Out-Null } 10 | $baseDir = (Resolve-Path $baseDir).Path # Normalize it 11 | & (& $PSScriptRoot\Get-NuGetTool.ps1) install procdump -version $version -PackageSaveMode nuspec -OutputDirectory $baseDir -Source https://api.nuget.org/v3/index.json | Out-Null 12 | } 13 | 14 | (Resolve-Path $procDumpToolPath).Path 15 | -------------------------------------------------------------------------------- /azure-pipelines/Get-TempToolsPath.ps1: -------------------------------------------------------------------------------- 1 | if ($env:AGENT_TEMPDIRECTORY) { 2 | $path = "$env:AGENT_TEMPDIRECTORY\$env:BUILD_BUILDID" 3 | } elseif ($env:localappdata) { 4 | $path = "$env:localappdata\gitrepos\tools" 5 | } else { 6 | $path = "$PSScriptRoot\..\obj\tools" 7 | } 8 | 9 | if (!(Test-Path $path)) { 10 | New-Item -ItemType Directory -Path $Path | Out-Null 11 | } 12 | 13 | (Resolve-Path $path).Path 14 | -------------------------------------------------------------------------------- /azure-pipelines/Get-nbgv.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Gets the path to the nbgv CLI tool, installing it if necessary. 4 | #> 5 | Param( 6 | ) 7 | 8 | $existingTool = Get-Command "nbgv" -ErrorAction SilentlyContinue 9 | if ($existingTool) { 10 | return $existingTool.Path 11 | } 12 | 13 | $toolInstallDir = & "$PSScriptRoot/Get-TempToolsPath.ps1" 14 | 15 | $toolPath = "$toolInstallDir/nbgv" 16 | if (!(Test-Path $toolInstallDir)) { New-Item -Path $toolInstallDir -ItemType Directory | Out-Null } 17 | 18 | if (!(Get-Command $toolPath -ErrorAction SilentlyContinue)) { 19 | Write-Host "Installing nbgv to $toolInstallDir" 20 | dotnet tool install --tool-path "$toolInstallDir" nbgv --configfile "$PSScriptRoot/justnugetorg.nuget.config" | Out-Null 21 | } 22 | 23 | # Normalize the path on the way out. 24 | return (Get-Command $toolPath).Path 25 | -------------------------------------------------------------------------------- /azure-pipelines/Linux.runsettings: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /azure-pipelines/Windows_NT.runsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | %BUILD_ARTIFACTSTAGINGDIRECTORY% 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /azure-pipelines/artifacts/_pipelines.ps1: -------------------------------------------------------------------------------- 1 | # This script translates all the artifacts described by _all.ps1 2 | # into commands that instruct Azure Pipelines to actually collect those artifacts. 3 | 4 | param ( 5 | [string]$ArtifactNameSuffix 6 | ) 7 | 8 | & "$PSScriptRoot/_stage_all.ps1" -ArtifactNameSuffix $ArtifactNameSuffix |% { 9 | Write-Host "##vso[artifact.upload containerfolder=$($_.Name);artifactname=$($_.Name);]$($_.Path)" 10 | } 11 | -------------------------------------------------------------------------------- /azure-pipelines/artifacts/build_logs.ps1: -------------------------------------------------------------------------------- 1 | if ($env:BUILD_ARTIFACTSTAGINGDIRECTORY) { 2 | $artifactsRoot = $env:BUILD_ARTIFACTSTAGINGDIRECTORY 3 | } else { 4 | $RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..") 5 | $artifactsRoot = "$RepoRoot\bin" 6 | } 7 | 8 | if (!(Test-Path $artifactsRoot/build_logs)) { return } 9 | 10 | @{ 11 | "$artifactsRoot/build_logs" = (Get-ChildItem -Recurse "$artifactsRoot/build_logs") 12 | } 13 | -------------------------------------------------------------------------------- /azure-pipelines/artifacts/mpc.ps1: -------------------------------------------------------------------------------- 1 | $RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..") 2 | $BuildConfiguration = $env:BUILDCONFIGURATION 3 | if (!$BuildConfiguration) { 4 | $BuildConfiguration = 'Debug' 5 | } 6 | 7 | $mpcArtifactPath = "$RepoRoot/bin/MessagePack.Generator/$BuildConfiguration/netcoreapp3.0" 8 | 9 | @{ 10 | $mpcArtifactPath = (Get-ChildItem $mpcArtifactPath -Recurse); 11 | } 12 | -------------------------------------------------------------------------------- /azure-pipelines/artifacts/nuget.ps1: -------------------------------------------------------------------------------- 1 | $RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..") 2 | $BuildConfiguration = $env:BUILDCONFIGURATION 3 | if (!$BuildConfiguration) { 4 | $BuildConfiguration = 'Debug' 5 | } 6 | 7 | $result = @{} 8 | 9 | $PackagesRoot = "$RepoRoot/bin/Packages/$BuildConfiguration/NuGet" 10 | if (Test-Path $PackagesRoot) { 11 | $result[$PackagesRoot] = (Get-ChildItem $PackagesRoot -Recurse) 12 | } 13 | 14 | return $result 15 | -------------------------------------------------------------------------------- /azure-pipelines/artifacts/projectAssetsJson.ps1: -------------------------------------------------------------------------------- 1 | $ObjRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..\obj") 2 | 3 | if (!(Test-Path $ObjRoot)) { return } 4 | 5 | @{ 6 | "$ObjRoot" = ( 7 | (Get-ChildItem "$ObjRoot\project.assets.json" -Recurse) 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /azure-pipelines/artifacts/unity.ps1: -------------------------------------------------------------------------------- 1 | $RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..") 2 | $BuildConfiguration = $env:BUILDCONFIGURATION 3 | if (!$BuildConfiguration) { 4 | $BuildConfiguration = 'Debug' 5 | } 6 | 7 | $result = @{} 8 | 9 | $UnityPackRoot = "$RepoRoot/bin" 10 | if (Test-Path $UnityPackRoot) { 11 | $result[$UnityPackRoot] = (Get-ChildItem $UnityPackRoot/*.unitypackage) 12 | } 13 | 14 | return $result 15 | -------------------------------------------------------------------------------- /azure-pipelines/artifacts/vsix.ps1: -------------------------------------------------------------------------------- 1 | $RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..") 2 | $BuildConfiguration = $env:BUILDCONFIGURATION 3 | if (!$BuildConfiguration) { 4 | $BuildConfiguration = 'Debug' 5 | } 6 | 7 | $result = @{} 8 | 9 | $VsixRoot = "$RepoRoot/bin/MessagePackAnalyzer.Vsix/$BuildConfiguration" 10 | if (Test-Path $VsixRoot) { 11 | $result[$VsixRoot] = (Get-ChildItem "$VsixRoot/*vsix") 12 | } 13 | 14 | return $result 15 | -------------------------------------------------------------------------------- /azure-pipelines/build.yml: -------------------------------------------------------------------------------- 1 | steps: 2 | - task: DotNetCoreCLI@2 3 | inputs: 4 | command: build 5 | arguments: --configuration $(BuildConfiguration) /t:build,pack /m /v:m /bl:"$(Build.ArtifactStagingDirectory)/build_logs/msbuild.binlog" 6 | displayName: Build MessagePack.sln 7 | 8 | - task: DotNetCoreCLI@2 9 | displayName: Run tests 10 | inputs: 11 | command: test 12 | projects: tests/**/*.Tests.csproj 13 | arguments: --configuration $(BuildConfiguration) --no-build -v n --settings "$(Build.Repository.LocalPath)/azure-pipelines/$(Agent.OS).runsettings" 14 | testRunTitle: $(Agent.JobName) 15 | 16 | ## The rest of these steps are for deployment and skipped for PR builds 17 | 18 | - task: PowerShell@2 19 | inputs: 20 | filePath: azure-pipelines/variables/_pipelines.ps1 21 | failOnStderr: true 22 | displayName: Update pipeline variables based on build outputs 23 | condition: succeededOrFailed() 24 | 25 | - task: PowerShell@2 26 | inputs: 27 | filePath: azure-pipelines/artifacts/_pipelines.ps1 28 | # arguments: -ArtifactNameSuffix "-$(Agent.JobName)" 29 | displayName: Publish artifacts 30 | condition: succeededOrFailed() 31 | -------------------------------------------------------------------------------- /azure-pipelines/install-dependencies.yml: -------------------------------------------------------------------------------- 1 | parameters: 2 | initArgs: 3 | 4 | steps: 5 | 6 | - powershell: | 7 | $AccessToken = '$(System.AccessToken)' # Avoid specifying the access token directly on the init.ps1 command line to avoid it showing up in errors 8 | .\init.ps1 -AccessToken $AccessToken ${{ parameters['initArgs'] }} -UpgradePrerequisites 9 | dotnet --info 10 | 11 | # Print mono version if it is present. 12 | if (Get-Command mono -ErrorAction SilentlyContinue) { 13 | mono --version 14 | } 15 | displayName: Install prerequisites 16 | 17 | - powershell: azure-pipelines/variables/_pipelines.ps1 18 | failOnStderr: true 19 | displayName: Set pipeline variables based on source 20 | name: SetPipelineVariables 21 | -------------------------------------------------------------------------------- /azure-pipelines/justnugetorg.nuget.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /azure-pipelines/variables/DotNetSdkVersion.ps1: -------------------------------------------------------------------------------- 1 | $globalJson = Get-Content -Path "$PSScriptRoot\..\..\global.json" | ConvertFrom-Json 2 | $globalJson.sdk.version 3 | -------------------------------------------------------------------------------- /azure-pipelines/variables/_all.ps1: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env pwsh 2 | 3 | # This script returns a hashtable of build variables that should be set 4 | # at the start of a build or release definition's execution. 5 | 6 | $vars = @{} 7 | 8 | Get-ChildItem "$PSScriptRoot\*.ps1" -Exclude "_*" |% { 9 | Write-Host "Computing $($_.BaseName) variable" 10 | $vars[$_.BaseName] = & $_ 11 | } 12 | 13 | $vars 14 | -------------------------------------------------------------------------------- /benchmark/ExperimentalBenchmark/MessagePack_2_1_165.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/MessagePack-CSharp/9aeb12b9bdb024512ffe2e4bddfa2785dca6e39e/benchmark/ExperimentalBenchmark/MessagePack_2_1_165.dll -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/BooleanValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class BooleanValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(bool); 13 | 14 | public object Generate() 15 | { 16 | return this.prng.Next() % 2 == 1; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/ByteValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class ByteValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(byte); 13 | 14 | public object Generate() 15 | { 16 | return (byte)(this.prng.Next() & 0xFF); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/DateTimeOffsetValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class DateTimeOffsetValueFixture : IValueFixture 9 | { 10 | private long lastValue; 11 | 12 | public Type Type { get; } = typeof(DateTimeOffset); 13 | 14 | public object Generate() 15 | { 16 | this.lastValue += 1000; 17 | return DateTimeOffset.FromUnixTimeMilliseconds(this.lastValue); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/DateTimeValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class DateTimeValueFixture : IValueFixture 9 | { 10 | private long lastValue; 11 | private static readonly long Offset = new DateTime(1970, 1, 1, 0, 0, 0).ToFileTime(); 12 | 13 | public Type Type { get; } = typeof(DateTime); 14 | 15 | public object Generate() 16 | { 17 | this.lastValue += 1000; 18 | var dt = DateTime.FromFileTime(this.lastValue + Offset); 19 | return dt; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/DecimalValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class DecimalValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(decimal); 13 | 14 | public object Generate() 15 | { 16 | return this.prng.Next() + 0.66m; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/DoubleValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class DoubleValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(double); 13 | 14 | public object Generate() 15 | { 16 | return this.prng.Next() + 0.5d; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/EnumValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class EnumValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | private readonly string[] values; 12 | 13 | public EnumValueFixture(Type type) 14 | { 15 | this.Type = type; 16 | this.values = Enum.GetNames(this.Type); 17 | } 18 | 19 | public Type Type { get; } 20 | 21 | public object Generate() 22 | { 23 | return Enum.Parse(this.Type, this.values[this.prng.Next(this.values.Length)]); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/FloatValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class FloatValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(float); 13 | 14 | public object Generate() 15 | { 16 | return ((float)this.prng.Next() % 10000) + 0.5f; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/GuidValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class GuidValueFixture : IValueFixture 9 | { 10 | public Type Type { get; } = typeof(Guid); 11 | 12 | public object Generate() 13 | { 14 | return Guid.NewGuid(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/IValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public interface IValueFixture 9 | { 10 | Type Type { get; } 11 | 12 | object Generate(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/IntValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class IntValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(int); 13 | 14 | public object Generate() 15 | { 16 | return this.prng.Next(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/LongValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class LongValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(long); 13 | 14 | public object Generate() 15 | { 16 | return ((long)this.prng.Next() << 32) | (uint)this.prng.Next(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/ShortValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class ShortValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(short); 13 | 14 | public object Generate() 15 | { 16 | return (short)(this.prng.Next() & 0xFFFF); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Fixture/StringValueFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Fixture 7 | { 8 | public class StringValueFixture : IValueFixture 9 | { 10 | private readonly Random prng = new Random(); 11 | 12 | public Type Type { get; } = typeof(string); 13 | 14 | public object Generate() 15 | { 16 | return this.Generate(8); 17 | } 18 | 19 | private string Generate(int length) 20 | { 21 | const string chars = "abcdefghijklmnopqrstuvwxyz0123456789"; 22 | var cArray = new char[length]; 23 | for (var i = 0; i < length; i++) 24 | { 25 | cArray[i] = chars[this.prng.Next(chars.Length)]; 26 | } 27 | 28 | return new string(cArray); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/IGenericEquality`1.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace Benchmark 5 | { 6 | public interface IGenericEquality 7 | { 8 | bool Equals(T obj); 9 | 10 | bool EqualsDynamic(dynamic obj); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/MessagePack_1_7_3_6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/MessagePack-CSharp/9aeb12b9bdb024512ffe2e4bddfa2785dca6e39e/benchmark/SerializerBenchmark/MessagePack_1_7_3_6.dll -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/OdinSerializer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/MessagePack-CSharp/9aeb12b9bdb024512ffe2e4bddfa2785dca6e39e/benchmark/SerializerBenchmark/OdinSerializer.dll -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using BenchmarkDotNet.Running; 5 | 6 | namespace Benchmark 7 | { 8 | internal static class Program 9 | { 10 | private static void Main(string[] args) 11 | { 12 | #if !DEBUG 13 | //BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args); 14 | BenchmarkRunner.Run(); 15 | #else 16 | BenchmarkRunner.Run(new BenchmarkDotNet.Configs.DebugInProcessConfig()); 17 | #endif 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/SerializerBenchmark.ruleset: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/BinaryFormatterSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.IO; 5 | using System.Runtime.Serialization.Formatters.Binary; 6 | 7 | namespace Benchmark.Serializers 8 | { 9 | public class BinaryFormatterSerializer : SerializerBase 10 | { 11 | public override T Deserialize(object input) 12 | { 13 | using (var ms = new MemoryStream((byte[])input)) 14 | { 15 | return (T)new BinaryFormatter().Deserialize(ms); 16 | } 17 | } 18 | 19 | public override object Serialize(T input) 20 | { 21 | using (var ms = new MemoryStream()) 22 | { 23 | new BinaryFormatter().Serialize(ms, input); 24 | ms.Flush(); 25 | return ms.ToArray(); 26 | } 27 | } 28 | 29 | public override string ToString() 30 | { 31 | return "BinaryFormatter"; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/CerasSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace Benchmark.Serializers 5 | { 6 | public class CerasSerializer : SerializerBase 7 | { 8 | private Ceras.CerasSerializer ceras = new Ceras.CerasSerializer(); 9 | 10 | public override T Deserialize(object input) 11 | { 12 | return this.ceras.Deserialize((byte[])input); 13 | } 14 | 15 | public override object Serialize(T input) 16 | { 17 | return this.ceras.Serialize(input); 18 | } 19 | 20 | public override string ToString() 21 | { 22 | return "Ceras"; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/DataContractSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.IO; 5 | 6 | namespace Benchmark.Serializers 7 | { 8 | public class DataContractSerializer : SerializerBase 9 | { 10 | public override T Deserialize(object input) 11 | { 12 | using (var ms = new MemoryStream((byte[])input)) 13 | { 14 | return (T)new System.Runtime.Serialization.DataContractSerializer(typeof(T)).ReadObject(ms); 15 | } 16 | } 17 | 18 | public override object Serialize(T input) 19 | { 20 | using (var ms = new MemoryStream()) 21 | { 22 | new System.Runtime.Serialization.DataContractSerializer(typeof(T)).WriteObject(ms, input); 23 | ms.Flush(); 24 | return ms.ToArray(); 25 | } 26 | } 27 | 28 | public override string ToString() 29 | { 30 | return "DataContract"; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/FsPicklerSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.IO; 5 | using MBrace.FsPickler; 6 | 7 | namespace Benchmark.Serializers 8 | { 9 | public class FsPicklerSerializer : SerializerBase 10 | { 11 | private static readonly BinarySerializer Serializer = MBrace.FsPickler.FsPickler.CreateBinarySerializer(); 12 | 13 | public override T Deserialize(object input) 14 | { 15 | using (var ms = new MemoryStream((byte[])input)) 16 | { 17 | return Serializer.Deserialize(ms); 18 | } 19 | } 20 | 21 | public override object Serialize(T input) 22 | { 23 | using (var ms = new MemoryStream()) 24 | { 25 | Serializer.Serialize(ms, input); 26 | ms.Flush(); 27 | return ms.ToArray(); 28 | } 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return "FsPickler"; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/HyperionSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.IO; 5 | using Hyperion; 6 | 7 | namespace Benchmark.Serializers 8 | { 9 | public class HyperionSerializer : SerializerBase 10 | { 11 | private static readonly Serializer Serializer = new Hyperion.Serializer(); 12 | 13 | public override T Deserialize(object input) 14 | { 15 | using (var ms = new MemoryStream((byte[])input)) 16 | { 17 | return Serializer.Deserialize(ms); 18 | } 19 | } 20 | 21 | public override object Serialize(T input) 22 | { 23 | using (var ms = new MemoryStream()) 24 | { 25 | Serializer.Serialize(input, ms); 26 | ms.Flush(); 27 | return ms.ToArray(); 28 | } 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return "Hyperion"; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/JilSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.Text; 5 | using Jil; 6 | 7 | namespace Benchmark.Serializers 8 | { 9 | public class JilSerializer : SerializerBase 10 | { 11 | public override object Serialize(T input) 12 | { 13 | return Encoding.UTF8.GetBytes(Jil.JSON.Serialize(input, Options.ISO8601)); 14 | } 15 | 16 | public override T Deserialize(object input) 17 | { 18 | return Jil.JSON.Deserialize(Encoding.UTF8.GetString((byte[])input), Options.ISO8601); 19 | } 20 | 21 | public override string ToString() 22 | { 23 | return "Jil"; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/MsgPackCliSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace Benchmark.Serializers 5 | { 6 | public class MsgPackCliSerializer : SerializerBase 7 | { 8 | public override T Deserialize(object input) 9 | { 10 | return MsgPack.Serialization.MessagePackSerializer.Get().UnpackSingleObject((byte[])input); 11 | } 12 | 13 | public override object Serialize(T input) 14 | { 15 | return MsgPack.Serialization.MessagePackSerializer.Get().PackSingleObject(input); 16 | } 17 | 18 | public override string ToString() 19 | { 20 | return "MsgPackCli"; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/OdinSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using Benchmark.Serializers; 5 | using OdinSerializer; 6 | using OdinSerializer.Utilities; 7 | 8 | #pragma warning disable SA1649 // File name should match first type name 9 | 10 | public class OdinSerializer_ : SerializerBase 11 | { 12 | public override object Serialize(T input) 13 | { 14 | using (var ctx = Cache.Claim()) 15 | { 16 | ctx.Value.Config.SerializationPolicy = SerializationPolicies.Everything; 17 | return SerializationUtility.SerializeValue(input, DataFormat.Binary, ctx.Value); 18 | } 19 | } 20 | 21 | public override T Deserialize(object input) 22 | { 23 | using (var ctx = Cache.Claim()) 24 | { 25 | ctx.Value.Config.SerializationPolicy = SerializationPolicies.Everything; 26 | return SerializationUtility.DeserializeValue((byte[])input, DataFormat.Binary, ctx.Value); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/ProtobufNetSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.IO; 5 | using ProtoBuf; 6 | 7 | namespace Benchmark.Serializers 8 | { 9 | public class ProtobufNetSerializer : SerializerBase 10 | { 11 | public override T Deserialize(object input) 12 | { 13 | using (var ms = new MemoryStream((byte[])input)) 14 | { 15 | return Serializer.Deserialize(ms); 16 | } 17 | } 18 | 19 | public override object Serialize(T input) 20 | { 21 | using (var ms = new MemoryStream()) 22 | { 23 | Serializer.Serialize(ms, input); 24 | return ms.ToArray(); 25 | } 26 | } 27 | 28 | public override string ToString() 29 | { 30 | return "ProtobufNet"; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/SerializerBase.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace Benchmark.Serializers 7 | { 8 | public abstract class SerializerBase 9 | { 10 | public abstract object Serialize(T input); 11 | 12 | public abstract T Deserialize(object input); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/SpanJsonSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace Benchmark.Serializers 5 | { 6 | public class SpanJsonSerializer : SerializerBase 7 | { 8 | public override object Serialize(T input) 9 | { 10 | return SpanJson.JsonSerializer.Generic.Utf8.Serialize(input); 11 | } 12 | 13 | public override T Deserialize(object input) 14 | { 15 | return SpanJson.JsonSerializer.Generic.Utf8.Deserialize((byte[])input); 16 | } 17 | 18 | public override string ToString() 19 | { 20 | return "SpanJson"; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/SystemTextJsonSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace Benchmark.Serializers 5 | { 6 | public class SystemTextJsonSerializer : SerializerBase 7 | { 8 | public override object Serialize(T input) 9 | { 10 | return System.Text.Json.JsonSerializer.SerializeToUtf8Bytes(input); 11 | } 12 | 13 | public override T Deserialize(object input) 14 | { 15 | var span = (byte[])input; 16 | return System.Text.Json.JsonSerializer.Deserialize(span); 17 | } 18 | 19 | public override string ToString() 20 | { 21 | return "SystemTextJson"; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /benchmark/SerializerBenchmark/Serializers/Utf8JsonSerializer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace Benchmark.Serializers 5 | { 6 | public class Utf8JsonSerializer : SerializerBase 7 | { 8 | public override object Serialize(T input) 9 | { 10 | return Utf8Json.JsonSerializer.Serialize(input); 11 | } 12 | 13 | public override T Deserialize(object input) 14 | { 15 | return Utf8Json.JsonSerializer.Deserialize((byte[])input); 16 | } 17 | 18 | public override string ToString() 19 | { 20 | return "UTF8Json"; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /doc/analyzers/MsgPack001.md: -------------------------------------------------------------------------------- 1 | # MsgPack001 Avoid static default for MessagePackSerializerOptions 2 | 3 | Without an explicit MessagePackSerializerOptions argument, a shared/static default will be assumed which any other code in the entire AppDomain or process can alter, causing malfunction in your invocation. 4 | 5 | ## Examples of patterns that are flagged by this analyzer 6 | 7 | ```cs 8 | MessagePackSerializer.Serialize(obj); 9 | ``` 10 | 11 | ## Solution 12 | 13 | Specify a `MessagePackSerializerOptions` value that comes from an immutable static property, field or local variable. 14 | 15 | ```cs 16 | MessagePackSerializer.Serialize(obj, MessagePackSerializerOptions.Standard); 17 | ``` 18 | -------------------------------------------------------------------------------- /doc/analyzers/MsgPack003.md: -------------------------------------------------------------------------------- 1 | # MsgPack003 Use MessagePackObjectAttribute 2 | 3 | Type must be marked with `MessagePackObjectAttribute`. 4 | -------------------------------------------------------------------------------- /doc/analyzers/MsgPack004.md: -------------------------------------------------------------------------------- 1 | # MsgPack004 Attribute public members of MessagePack objects 2 | 3 | Public members of `MessagePackObjectAttribute`-attributed types require either `KeyAttribute` or `IgnoreMemberAttribute`. 4 | -------------------------------------------------------------------------------- /doc/analyzers/MsgPack005.md: -------------------------------------------------------------------------------- 1 | # MsgPack005 MessagePackObject validation 2 | 3 | Invalid MessagePackObject definition. 4 | -------------------------------------------------------------------------------- /doc/analyzers/index.md: -------------------------------------------------------------------------------- 1 | # Diagnostic Analyzers 2 | 3 | The following are the diagnostic analyzers installed with the [MessagePackAnalyzer][1] 4 | NuGet package. 5 | 6 | ID | Title 7 | ---|--- 8 | [MsgPack001](MsgPack001.md) | Avoid static default for MessagePackSerializerOptions 9 | [MsgPack002](MsgPack002.md) | Avoid using a mutable static value for MessagePackSerializerOptions 10 | [MsgPack003](MsgPack003.md) | Use MessagePackObjectAttribute 11 | [MsgPack004](MsgPack004.md) | Attribute public members of MessagePack objects 12 | [MsgPack005](MsgPack005.md) | MessagePackObject validation 13 | 14 | [1]: https://nuget.org/packages/MessagePackAnalyzer 15 | -------------------------------------------------------------------------------- /doc/consume_ci.md: -------------------------------------------------------------------------------- 1 | # Testing fixes prior to release 2 | 3 | To help us test changes prior to their release to nuget.org, you can of course build from source. 4 | An easier approach may be to consume the built nuget packages from our CI/PR feed. 5 | 6 | Add this feed to your nuget.config file: 7 | 8 | ```xml 9 | 10 | ``` 11 | 12 | Then you can add or update your package reference to some version recently built in our CI or PR build. 13 | PR builds always include a `-gCOMMITID` version suffix. 14 | CI builds lack this, but may include a standard pre-release identifier such as `-alpha`. 15 | 16 | If the change you seek is already merged, look for the latest version without the `-gCOMMITID` suffix. 17 | If the change you seek is in an open PR, navigate to the PR build to find the version of the built package (it will be the build number). 18 | -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "version": "6.0.300", 4 | "rollForward": "patch", 5 | "allowPrerelease": false 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /graph.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/MessagePack-CSharp/9aeb12b9bdb024512ffe2e4bddfa2785dca6e39e/graph.xlsx -------------------------------------------------------------------------------- /init.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | SETLOCAL 3 | set PS1UnderCmd=1 4 | 5 | :: Get the datetime in a format that can go in a filename. 6 | set _my_datetime=%date%_%time% 7 | set _my_datetime=%_my_datetime: =_% 8 | set _my_datetime=%_my_datetime::=% 9 | set _my_datetime=%_my_datetime:/=_% 10 | set _my_datetime=%_my_datetime:.=_% 11 | set CmdEnvScriptPath=%temp%\envvarscript_%_my_datetime%.cmd 12 | 13 | powershell.exe -NoProfile -NoLogo -ExecutionPolicy bypass -Command "try { & '%~dpn0.ps1' %*; exit $LASTEXITCODE } catch { write-host $_; exit 1 }" 14 | 15 | :: Set environment variables in the parent cmd.exe process. 16 | IF EXIST "%CmdEnvScriptPath%" ( 17 | ENDLOCAL 18 | CALL "%CmdEnvScriptPath%" 19 | DEL "%CmdEnvScriptPath%" 20 | ) 21 | -------------------------------------------------------------------------------- /opensource.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/MessagePack-CSharp/9aeb12b9bdb024512ffe2e4bddfa2785dca6e39e/opensource.snk -------------------------------------------------------------------------------- /prepare_release.ps1: -------------------------------------------------------------------------------- 1 | # Calculate the NPM package version, assuming the version change is in a new commit. 2 | git commit --allow-empty -m "Dummy commit" -q 3 | $NpmPackageVersion = (nbgv get-version -f json | ConvertFrom-Json).NpmPackageVersion 4 | git reset --mixed HEAD~ -q 5 | 6 | # Stamp the version into the package.json file and commit. 7 | pushd $PSScriptRoot/src/MessagePack.UnityClient/Assets/Scripts/MessagePack 8 | npm version $NpmPackageVersion --no-git-tag-version --allow-same-version 9 | git add package.json 10 | popd 11 | git commit -m "Stamp unity package version as $NpmPackageVersion" 12 | 13 | # Tag the release 14 | nbgv tag 15 | -------------------------------------------------------------------------------- /sandbox/MessagePack.Internal/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.Runtime.CompilerServices; 5 | 6 | [assembly: InternalsVisibleTo("MessagePack.Internal.Tests")] 7 | -------------------------------------------------------------------------------- /sandbox/PerfBenchmarkDotNet/ContractlessType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | extern alias newmsgpack; 5 | extern alias oldmsgpack; 6 | 7 | #pragma warning disable SA1306 // Field names should begin with lower-case letter 8 | #pragma warning disable SA1312 // Variable names should begin with lower-case letter 9 | 10 | namespace PerfBenchmarkDotNet 11 | { 12 | public class ContractlessType 13 | { 14 | public ContractlessType(string name, ContractlessType nested) 15 | { 16 | this.Name = name; 17 | this.Nested = nested; 18 | } 19 | 20 | public string Name { get; } 21 | 22 | public ContractlessType Nested { get; } 23 | } 24 | } 25 | 26 | #pragma warning restore SA1200 // Using directives should be placed correctly 27 | #pragma warning restore SA1403 // File may only contain a single namespace 28 | 29 | -------------------------------------------------------------------------------- /sandbox/PerfBenchmarkDotNet/MessagePack_1_4_4.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/MessagePack-CSharp/9aeb12b9bdb024512ffe2e4bddfa2785dca6e39e/sandbox/PerfBenchmarkDotNet/MessagePack_1_4_4.dll -------------------------------------------------------------------------------- /sandbox/PerfBenchmarkDotNet/MessagePack_1_6_0_3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/MessagePack-CSharp/9aeb12b9bdb024512ffe2e4bddfa2785dca6e39e/sandbox/PerfBenchmarkDotNet/MessagePack_1_6_0_3.dll -------------------------------------------------------------------------------- /sandbox/PerfBenchmarkDotNet/Resolver.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | extern alias newmsgpack; 5 | extern alias oldmsgpack; 6 | 7 | #pragma warning disable SA1306 // Field names should begin with lower-case letter 8 | #pragma warning disable SA1312 // Variable names should begin with lower-case letter 9 | 10 | namespace PerfBenchmarkDotNet 11 | { 12 | public class Resolver : newmsgpack::MessagePack.IFormatterResolver 13 | { 14 | private object formatter; 15 | 16 | public Resolver(object formatter) 17 | { 18 | this.formatter = formatter; 19 | } 20 | 21 | public newmsgpack::MessagePack.Formatters.IMessagePackFormatter GetFormatter() 22 | { 23 | return (newmsgpack::MessagePack.Formatters.IMessagePackFormatter)this.formatter; 24 | } 25 | } 26 | } 27 | 28 | #pragma warning restore SA1200 // Using directives should be placed correctly 29 | #pragma warning restore SA1403 // File may only contain a single namespace 30 | 31 | -------------------------------------------------------------------------------- /sandbox/PerfBenchmarkDotNet/TypelessPrimitiveType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | extern alias newmsgpack; 5 | extern alias oldmsgpack; 6 | 7 | #pragma warning disable SA1306 // Field names should begin with lower-case letter 8 | #pragma warning disable SA1312 // Variable names should begin with lower-case letter 9 | 10 | namespace PerfBenchmarkDotNet 11 | { 12 | public class TypelessPrimitiveType 13 | { 14 | public TypelessPrimitiveType(string name, object nested) 15 | { 16 | this.Name = name; 17 | this.Nested = nested; 18 | } 19 | 20 | public string Name { get; } 21 | 22 | public object Nested { get; } 23 | } 24 | } 25 | 26 | #pragma warning restore SA1200 // Using directives should be placed correctly 27 | #pragma warning restore SA1403 // File may only contain a single namespace 28 | 29 | -------------------------------------------------------------------------------- /sandbox/PerfNetFramework/PerfNetFramework.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | Exe 4 | net472;net6.0 5 | true 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /sandbox/PerfNetFramework/README.md: -------------------------------------------------------------------------------- 1 | # Performance analysis 2 | 3 | Build and use the release configuration of the project so you're measuring real perf with optimizations turned on: 4 | 5 | dotnet build -c release .\sandbox\PerfNetFramework\ 6 | 7 | Use [PerfView](https://github.com/Microsoft/perfview/blob/master/documentation/Downloading.md) to analyze performance 8 | to look for opportunities to improve. 9 | When collecting ETL traces, use these settings in the Collect->Run dialog: 10 | 11 | | Setting | Value | 12 | |-------------|-------| 13 | | Command | `dotnet run -c release -p .\sandbox\PerfNetFramework\ -f net461 --no-build` 14 | | Current Dir | `d:\git\messagepack-csharp` (or wherever your enlistment is) 15 | | Additional Providers | `*MessagePack-Benchmark` 16 | | No V3.X NGen | Checked 17 | 18 | Start your investigation using the Events window to find the scenario that you're interested in, 19 | with these settings: 20 | 21 | | Setting | Value | 22 | |------------|-------| 23 | | Filter | `MessagePack` 24 | | Columns to display | `count DURATION_MSEC impl` 25 | 26 | Select the two `Time MSec` values that bound the scenario you're interested in, right-click and select CPU Stacks. 27 | -------------------------------------------------------------------------------- /sandbox/PerfNetFramework/Sex.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace PerfNetFramework 5 | { 6 | public enum Sex : sbyte 7 | { 8 | Unknown, 9 | Male, 10 | Female, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /sandbox/Sandbox/Sandbox.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Exe 5 | netcoreapp3.1 6 | True 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /sandbox/Sandbox/codegen.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | SETLOCAL 3 | set PS1UnderCmd=1 4 | powershell.exe -NoProfile -NoLogo -ExecutionPolicy bypass -Command "try { & '%~dpn0.ps1' %*; exit $LASTEXITCODE } catch { write-host $_; exit 1 }" 5 | -------------------------------------------------------------------------------- /sandbox/Sandbox/codegen.ps1: -------------------------------------------------------------------------------- 1 | dotnet run -f "net6.0" --project "$PSScriptRoot/../../src/MessagePack.Generator/MessagePack.Generator.csproj" -- -i "$PSScriptRoot/../SharedData/SharedData.csproj" -o "$PSScriptRoot/Generated.cs" 2 | -------------------------------------------------------------------------------- /sandbox/SharedData/SharedData.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | netstandard2.0 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /sandbox/TestData.InvalidProject/Class1.cs: -------------------------------------------------------------------------------- 1 | using MessagePack; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace TestData2 9 | { 10 | [MessagePackObject(true)] 11 | public class A { public int a; public List bs; public C c; } 12 | 13 | [MessagePackObject(true)] 14 | public class B { public List ass; public C c; public int a; } 15 | 16 | [MessagePackObject(true)] 17 | public class C { public B b; public int a; } 18 | 19 | 20 | [MessagePackObject(true)] 21 | public class PropNameCheck1 22 | { 23 | public string MyProperty1 { get; set; } 24 | public virtual string MyProperty2 { get; set; } 25 | } 26 | 27 | [MessagePackObject(true)] 28 | public class PropNameCheck2 : PropNameCheck1 29 | { 30 | public override string MyProperty2 31 | { 32 | get => base.MyProperty2; 33 | set => base.MyProperty2 = value; } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /sandbox/TestData.InvalidProject/TestData.InvalidProject.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net461 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /sandbox/TestData.InvalidSyntax/Class1.cs: -------------------------------------------------------------------------------- 1 | using MessagePack; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace TestData.InvalidSyntax 9 | { 10 | // delibrated syntax error 11 | abcde 12 | [MessagePackObject(true)] 13 | public class A { public int a; public List bs; public C c; } 14 | 15 | [MessagePackObject(true)] 16 | public class B { public List ass; public C c; public int a; } 17 | 18 | [MessagePackObject(true)] 19 | public class C { public B b; public int a; } 20 | 21 | 22 | [MessagePackObject(true)] 23 | public class PropNameCheck1 24 | { 25 | public string MyProperty1 { get; set; } 26 | public virtual string MyProperty2 { get; set; } 27 | } 28 | 29 | [MessagePackObject(true)] 30 | public class PropNameCheck2 : PropNameCheck1 31 | { 32 | public override string MyProperty2 33 | { 34 | get => base.MyProperty2; 35 | set => base.MyProperty2 = value; } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /sandbox/TestData.InvalidSyntax/TestData.InvalidSyntax.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net461 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /sandbox/TestData2/A.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | #pragma warning disable SA1307 // Accessible fields should begin with upper-case letter 5 | #pragma warning disable SA1401 // Fields should be private 6 | #nullable enable 7 | 8 | namespace TestData2; 9 | 10 | [MessagePackObject(true)] 11 | public class A 12 | { 13 | public int a; public List? bs; public C? c; 14 | } 15 | -------------------------------------------------------------------------------- /sandbox/TestData2/B.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | #pragma warning disable SA1307 // Accessible fields should begin with upper-case letter 5 | #pragma warning disable SA1401 // Fields should be private 6 | #nullable enable 7 | 8 | namespace TestData2; 9 | 10 | [MessagePackObject(true)] 11 | public class B 12 | { 13 | public List? ass; public C? c; public int a; 14 | } 15 | -------------------------------------------------------------------------------- /sandbox/TestData2/C.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | #pragma warning disable SA1307 // Accessible fields should begin with upper-case letter 5 | #pragma warning disable SA1401 // Fields should be private 6 | #nullable enable 7 | 8 | namespace TestData2; 9 | 10 | [MessagePackObject(true)] 11 | public class C 12 | { 13 | public B? b; public int a; 14 | } 15 | -------------------------------------------------------------------------------- /sandbox/TestData2/PropNameCheck1.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using MessagePack; 5 | 6 | #pragma warning disable SA1307 // Accessible fields should begin with upper-case letter 7 | #pragma warning disable SA1401 // Fields should be private 8 | 9 | namespace TestData2 10 | { 11 | [MessagePackObject(true)] 12 | public class PropNameCheck1 13 | { 14 | public string MyProperty1 { get; set; } 15 | 16 | public virtual string MyProperty2 { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /sandbox/TestData2/PropNameCheck2.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using MessagePack; 10 | 11 | #pragma warning disable SA1307 // Accessible fields should begin with upper-case letter 12 | #pragma warning disable SA1401 // Fields should be private 13 | 14 | namespace TestData2 15 | { 16 | [MessagePackObject(true)] 17 | public class PropNameCheck2 : PropNameCheck1 18 | { 19 | public override string MyProperty2 20 | { 21 | get => base.MyProperty2; 22 | set => base.MyProperty2 = value; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /sandbox/TestData2/Record.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using MessagePack; 5 | 6 | namespace TestData2 7 | { 8 | [MessagePackObject] 9 | public record Record([property: Key("SomeProperty")] string SomeProperty); 10 | } 11 | -------------------------------------------------------------------------------- /sandbox/TestData2/TestData2.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net461 4 | 10 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /sandbox/TestData2/codegen.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | SETLOCAL 3 | set PS1UnderCmd=1 4 | powershell.exe -NoProfile -NoLogo -ExecutionPolicy bypass -Command "try { & '%~dpn0.ps1' %*; exit $LASTEXITCODE } catch { write-host $_; exit 1 }" 5 | -------------------------------------------------------------------------------- /sandbox/TestData2/codegen.ps1: -------------------------------------------------------------------------------- 1 | dotnet run -f "net6.0" --project "$PSScriptRoot/../../src/MessagePack.Generator/MessagePack.Generator.csproj" -- -i "$PSScriptRoot/TestData2.csproj" -o "$PSScriptRoot/Generated.cs" 2 | -------------------------------------------------------------------------------- /sandbox/codegen.ps1: -------------------------------------------------------------------------------- 1 | $codeGenScripts = 2 | "$PSScriptRoot/Sandbox/codegen.ps1", 3 | "$PSScriptRoot/TestData2/codegen.ps1" 4 | 5 | $exitCode = 0 6 | $codeGenScripts | % { 7 | & $_ 8 | if ($LASTEXITCODE -ne 0) { $exitCode = 1 } 9 | } 10 | 11 | exit $exitCode 12 | -------------------------------------------------------------------------------- /src/Directory.Build.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | True 5 | $(MSBuildThisFileDirectory)..\opensource.snk 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/MessagePack.Annotations/MessagePack.Annotations.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | netstandard2.0 5 | $(NoWarn);CS0649 6 | MessagePack 7 | 8 | true 9 | MessagePack annotations for C# 10 | Attributes and interfaces for .NET types serializable with MessagePack. 11 | MsgPack;MessagePack;Serialization;Formatter;Serializer;Unity;Xamarin 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/MessagePack.AspNetCoreMvcFormatter/MessagePack.AspNetCoreMvcFormatter.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | netstandard2.0;netcoreapp3.1 4 | true 5 | ASP.NET Core MVC Input/Output MessagePack formatter 6 | ASP.NET Core MVC Input/Output MessagePack formatter. 7 | MsgPack;MessagePack;Serialization;Formatter;Serializer;aspnetcore;aspnetcoremvc 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/MessagePack.Experimental/Experimental.md: -------------------------------------------------------------------------------- 1 | # MessagePack.Experimental 2 | 3 | This C# project is the experimental project for the features which are very complex, unstable or unsafe. 4 | 5 | - [HardwareIntrinsics](HardwareIntrinsics/HardwareIntrinsics.md) 6 | - [UnsafeUnmanagedStructFormatter](UnsafeUnmanagedStructFormatter/UnsafeUnmanagedStructFormatter.md) 7 | 8 | **Caution!** 9 | 10 | `MessagePack.Experimental` only targets `.NET Core 3.1` and above. 11 | You can not use this in Unity and .NET Framework. -------------------------------------------------------------------------------- /src/MessagePack.Experimental/HardwareIntrinsics/HardwareIntrinsics.md: -------------------------------------------------------------------------------- 1 | # Abstract 2 | 3 | `Hardware Intrinsics` is a feature in order to utilize maximum power of the cpu. 4 | You can serialize/deserialize primitive type array much faster than current implementation! 5 | 6 | Supported types 7 | 8 | - `sbyte[]` 9 | - `short[]` 10 | - `int[]` 11 | - `bool[]` 12 | - `float[]` 13 | - `double[]` 14 | 15 | # Usage 16 | 17 | ```csharp 18 | var resolver = MessagePack.Resolvers.CompositeResolver.Create(new[] { PrimitiveArrayResolver.Instance, MessagePack.Resolvers.StandardResolver.Instance }); 19 | ``` 20 | 21 | # When will this feature become official? 22 | 23 | - The MessagePack-CSharp's lowest target framework is greater or equals to `.NET Core 3.1`. 24 | - The current very complex and hard to understand implementation is rewritten. -------------------------------------------------------------------------------- /src/MessagePack.Experimental/HardwareIntrinsics/PrimitiveArrayResolver.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using MessagePack.Formatters; 5 | 6 | namespace MessagePack.Resolvers 7 | { 8 | public sealed class PrimitiveArrayResolver : IFormatterResolver 9 | { 10 | public static readonly PrimitiveArrayResolver Instance = new PrimitiveArrayResolver(); 11 | 12 | private PrimitiveArrayResolver() 13 | { 14 | } 15 | 16 | public IMessagePackFormatter? GetFormatter() 17 | { 18 | return FormatterCache.Formatter; 19 | } 20 | 21 | private static class FormatterCache 22 | { 23 | internal static readonly IMessagePackFormatter? Formatter; 24 | 25 | static FormatterCache() 26 | { 27 | Formatter = PrimitiveArrayGetFormatterHelper.GetFormatter(typeof(T)) as IMessagePackFormatter; 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/MessagePack.Experimental/HardwareIntrinsics/UnsafeMemoryAlignmentUtility.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Runtime.CompilerServices; 6 | 7 | namespace MessagePack.Formatters 8 | { 9 | internal static unsafe class UnsafeMemoryAlignmentUtility 10 | { 11 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 12 | public static int CalculateDifferenceAlign16(void* pointer) 13 | { 14 | var difference = new UIntPtr(pointer).ToUInt64(); 15 | difference -= (difference >> 4) << 4; 16 | difference = (16 - difference) & 0xfUL; 17 | return (int)difference; 18 | } 19 | 20 | public static int CalculateDifferenceAlign32(void* pointer) 21 | { 22 | var difference = new UIntPtr(pointer).ToUInt64(); 23 | difference -= (difference >> 5) << 5; 24 | difference = (32 - difference) & 0x1fUL; 25 | return (int)difference; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/MessagePack.Experimental/UnsafeUnmanagedStructFormatter/UnsafeUnmanagedStructFormatter.md: -------------------------------------------------------------------------------- 1 | # Abstract 2 | 3 | `UnsafeUnmanagedStructFormatter`s (de)serialize the blittable value(s) directly. 4 | They are very performant but unstable against the endian. 5 | 6 | You should be careful not to share the encoded byte[] among the different endian environments. 7 | 8 | Supported types (T where T : unamanaged) 9 | 10 | - `T` → `UnsafeUnmanagedStructFormatter` 11 | - `T[]` → `UnsafeUnmanagedStructArrayFormatter` 12 | - `Memory` → `UnsafeUnmanagedStructMemoryFormatter` 13 | - `ReadOnlyMemory` → `UnsafeUnmanagedStructReadOnlyMemoryFormatter` 14 | - `ReadOnlySequence` → `UnsafeUnmanagedStructReadOnlySequenceFormatter` 15 | 16 | # Usage 17 | 18 | ```csharp 19 | var resolver = MessagePack.Resolvers.CompositeResolver.Create( 20 | new[] { new UnsafeUnmanagedStructFormatter(typeCode: 96) }, 21 | new[] { MessagePack.Resolvers.StandardResolver.Instance }); 22 | ``` 23 | 24 | The constructor takes 1 sbyte value. 25 | The sbyte value is the extension type code embedded in serialized byte sequence. 26 | 27 | # When will this feature become official? 28 | 29 | - Requests are needed. -------------------------------------------------------------------------------- /src/MessagePack.Generator/.editorconfig: -------------------------------------------------------------------------------- 1 | [*.cs] 2 | 3 | # VSTHRD111: Use ConfigureAwait(bool) 4 | dotnet_diagnostic.VSTHRD111.severity = none 5 | -------------------------------------------------------------------------------- /src/MessagePack.GeneratorCore/.editorconfig: -------------------------------------------------------------------------------- 1 | [*.cs] 2 | 3 | # VSTHRD111: Use ConfigureAwait(bool) 4 | dotnet_diagnostic.VSTHRD111.severity = none 5 | -------------------------------------------------------------------------------- /src/MessagePack.GeneratorCore/Generator/IFormatterTemplate.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using MessagePackCompiler.CodeAnalysis; 5 | 6 | namespace MessagePackCompiler.Generator 7 | { 8 | public interface IFormatterTemplate 9 | { 10 | string Namespace { get; } 11 | 12 | ObjectSerializationInfo[] ObjectSerializationInfos { get; } 13 | 14 | string TransformText(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MessagePack.ImmutableCollection/MessagePack.ImmutableCollection.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | netstandard2.0 5 | 6 | true 7 | MessagePack for C# Extension Support for ImmutableCollection 8 | Deprecated package to add System.Collections.Immutable support to MessagePack. This is now built into the main package. 9 | MsgPack;MessagePack;Serialization;Formatter;Serializer 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/MessagePack.MSBuild.Tasks/build/MessagePack.MSBuild.Tasks.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | MessagePack 5 | 6 | 7 | GeneratedResolver 8 | 9 | 10 | false 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/MessagePack.MSBuild.Tasks/build/MessagePack.MSBuild.Tasks.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 7 | 8 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/MessagePack.ReactiveProperty/MessagePack.ReactiveProperty.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | netstandard2.0 5 | 6 | true 7 | MessagePack for C# Extension Support for ReactiveProperty 8 | Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). Extension support for ReactiveProperty. 9 | MsgPack;MessagePack;Serialization;Formatter;Serializer;ReactiveProperty 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/.gitignore: -------------------------------------------------------------------------------- 1 | # VS project and solution files are built and rebuilt by Unity 2 | *.csproj 3 | *.sln 4 | 5 | # Unity wants to see binaries inside its Assets directory. 6 | # We link them in with make_unity_symlink.bat, but we don't want to actually commit them into git. 7 | Assets/*.dll 8 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/.gitignore: -------------------------------------------------------------------------------- 1 | Plugins/ -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fb5bfc38043b7444b650388190ea48f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abcb1a88f6868eb4da993d61d6aeef51 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e64ff5fb973b7104f9c76c166c46f872 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/Editor/HierarchyTreeBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50688156d1ed48e4d8e835a295e75699 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/Editor/UnitTestBuilder.MenuItems.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b7df7a947db56a4389c26cf3022840f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/Editor/UnitTestBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a1edf0e809243a4b95687c2fc05134c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/RuntimeUnitTestToolkit.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RuntimeUnitTestToolkit", 3 | "references": [ 4 | ], 5 | "optionalUnityReferences": [ 6 | "TestAssemblies" 7 | ], 8 | "includePlatforms": [], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": false, 12 | "precompiledReferences": [], 13 | "autoReferenced": true, 14 | "defineConstraints": [], 15 | "versionDefines": [] 16 | } -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/RuntimeUnitTestToolkit.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1ad5407f3f9cec45a06a114f01e5d25 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/UnitTestRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f083cc7755e80144a8cf0c8f5a36973 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jp.cysharp.runtimeunittesttoolkit", 3 | "displayName": "RuntimeUnitTestToolkit", 4 | "version": "2.0.0", 5 | "unity": "2018.3", 6 | "description": "CLI/GUI Frontend of Unity Test Runner to test on any platform.", 7 | "keywords": ["test"], 8 | "category": "Tests", 9 | "dependencies": { 10 | } 11 | } -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/RuntimeUnitTestToolkit/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fa12a10b3c23d1459f13dcaab61deb2 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00d5b24425ae0304c81e57f39639bbcc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scenes/Sandbox.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 730cfddf655e2164fb24fb1a88a0d9dd 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scenes/SandboxBehaviour.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | using MessagePack; 7 | using UnityEngine; 8 | using System.Buffers; 9 | 10 | public class SandboxBehaviour : MonoBehaviour 11 | { 12 | void Start() 13 | { 14 | // 'あ' is [227, 129, 130] 15 | var bin = MessagePackSerializer.Serialize(new string('あ', 11)); 16 | 17 | // expected: 217, 33, 227, 129, 130, 227, 129, 130, .... 18 | // actual: 217, 33, 227, 227, 227, 227, 227, 227, 227, 227 19 | UnityEngine.Debug.Log(string.Join(", ", bin)); 20 | 21 | } 22 | } 23 | 24 | class SimpleBufferWriter : IBufferWriter 25 | { 26 | public byte[] buffer = new byte[1024]; 27 | public int index; 28 | 29 | public void Advance(int count) 30 | { 31 | index += count; 32 | } 33 | 34 | public Memory GetMemory(int sizeHint = 0) 35 | { 36 | return buffer; 37 | } 38 | 39 | public Span GetSpan(int sizeHint = 0) 40 | { 41 | return buffer; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scenes/SandboxBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a93abda481f95a48ad2009b8a549401 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b9088233d8c04747a541fc2613c16f7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af4eefe66f709854aaa6f1ce1f77dc41 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Editor/PackageExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce18e30e919869b4ca4b3087f79ecaa2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f4afbebafeba344faf44c6e707cbe6a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Annotations.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5af1793970d03ad42bce52b4e5e52bee 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Annotations/Attributes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f684d4f03d4f86149990459d3054e2af 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Annotations/IMessagePackSerializationCallbackReceiver.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace MessagePack 5 | { 6 | public interface IMessagePackSerializationCallbackReceiver 7 | { 8 | void OnBeforeSerialize(); 9 | 10 | void OnAfterDeserialize(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Annotations/IMessagePackSerializationCallbackReceiver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1714a0e4e8a7354e90f52000abdddd9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Annotations/MessagePack.Annotations.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MessagePack.Annotations" 3 | } 4 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Annotations/MessagePack.Annotations.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a46ad82eac024e4fbb6a0516a5def17 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/BitOperations.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b03a72c1f30f7a4f92f859479703d3c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/BufferWriter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ed92c5d94108c44c93e31cd211ef1a6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/ExtensionHeader.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace MessagePack 7 | { 8 | #if MESSAGEPACK_INTERNAL 9 | internal 10 | #else 11 | public 12 | #endif 13 | struct ExtensionHeader : IEquatable 14 | { 15 | public sbyte TypeCode { get; private set; } 16 | 17 | public uint Length { get; private set; } 18 | 19 | public ExtensionHeader(sbyte typeCode, uint length) 20 | { 21 | this.TypeCode = typeCode; 22 | this.Length = length; 23 | } 24 | 25 | public ExtensionHeader(sbyte typeCode, int length) 26 | { 27 | this.TypeCode = typeCode; 28 | this.Length = (uint)length; 29 | } 30 | 31 | public bool Equals(ExtensionHeader other) => this.TypeCode == other.TypeCode && this.Length == other.Length; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/ExtensionHeader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27ccbf9800df8ad48be2d278e288b37e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/ExtensionResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Buffers; 6 | 7 | namespace MessagePack 8 | { 9 | #if MESSAGEPACK_INTERNAL 10 | internal 11 | #else 12 | public 13 | #endif 14 | struct ExtensionResult 15 | { 16 | public ExtensionResult(sbyte typeCode, Memory data) 17 | { 18 | this.TypeCode = typeCode; 19 | this.Data = new ReadOnlySequence(data); 20 | } 21 | 22 | public ExtensionResult(sbyte typeCode, ReadOnlySequence data) 23 | { 24 | this.TypeCode = typeCode; 25 | this.Data = data; 26 | } 27 | 28 | public sbyte TypeCode { get; private set; } 29 | 30 | public ReadOnlySequence Data { get; private set; } 31 | 32 | public ExtensionHeader Header => new ExtensionHeader(this.TypeCode, (uint)this.Data.Length); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/ExtensionResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e64fdfe376c995419f98e1384f33b3e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31feb9a3f0d3ad14a8e475cfde930bc2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/CollectionFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1185cc5503e9de47b44ccaf43b6d665 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/CollectionHelpers`2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7aad614464db2c44a86b3b012e69b609 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/DateTimeFormatters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 619edb2526be60b41b30abdd4f514a3b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/DictionaryFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abfb83d1822bbfc409f1f182e365e8ea 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/DynamicObjectTypeFallbackFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13f8970ea4cf5834783e2cf34116798a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/EnumAsStringFormatter`1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4dc4ef7e6eaadef48b04d66cb80b5697 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/ExpandoObjectFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f013651a80f23245b9fe0ca2db89012 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/GenericEnumFormatter`1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16ee992e15116754bae00d06d3968ec1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/IMessagePackFormatter`1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88421097d73e1de479d2004c6c23d2e1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/IgnoreFormatter`1.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.Buffers; 5 | 6 | namespace MessagePack.Formatters 7 | { 8 | public sealed class IgnoreFormatter : IMessagePackFormatter 9 | { 10 | public void Serialize(ref MessagePackWriter writer, T value, MessagePackSerializerOptions options) 11 | { 12 | writer.WriteNil(); 13 | } 14 | 15 | public T Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options) 16 | { 17 | reader.Skip(); 18 | return default(T); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/IgnoreFormatter`1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8916acfe5213bf940913b28c051e8231 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/MultiDimensionalArrayFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea25d9a859415b944a2932f414c2e353 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/NilFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb4a59c3b8b4d144db65ac850daf0e53 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/NullableFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05a403acf284b814abe1eabfbde39d1e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/PrimitiveObjectFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e9c746624d882945a740f31fc8ebda9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/StandardClassLibraryFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae4d882aeb27bc54e991d848a5683387 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/StringInterningFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78f9cfd44a10b334582b112b07143434 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/TypelessFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 368d3024351ce2e4abc42297e26c5108 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/UnsafeBinaryFormatters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b4bd9957393761499af403a5ef7ebfa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/HashCode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56e9bfe9ee9b0354b8765ebefbac8d67 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/IFormatterResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad1508639e1c32f489af46c74b5d3966 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: deb57fc90cc5d4e41882bb93fa71a4c5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/AsymmetricKeyHashTable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe3bf5c42bc27c1429b9e8bd1839b8e0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/AutomataDictionary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14776842f04657842b044268a62cf6b2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/ByteArrayStringHashTable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4df68ce4d7981d244b9a6e7991ef717d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/CodeGenHelpers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e733605ab88010a4686b39fea27fe38b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/DateTimeConstants.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | 6 | namespace MessagePack.Internal 7 | { 8 | internal static class DateTimeConstants 9 | { 10 | internal const long BclSecondsAtUnixEpoch = 62135596800; 11 | internal const int NanosecondsPerTick = 100; 12 | internal static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/DateTimeConstants.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b25d1986c9838643ac125bc06eac98c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/DynamicAssembly.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c3c62d8dc2404b43b89833c076e73ef 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/ExpressionUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79cc2e793fd7f1047b6c6e9718b59912 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/FarmHash.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97eed140914d52943ad6955224ce4577 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/GuidBits.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d68edf2bf3e742a4393af6f3e17345db 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/ILGeneratorExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 581e7074a007a6548a5e8408a4dad6dc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/ReflectionExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6682a58039cc664c9e66b2d4b02d4d3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/RuntimeTypeHandleEqualityComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bceda592765280b4f8cb470f1ed9c532 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/Sequence`1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46a3d0af338351d4b897b1323a92233a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/ThreadsafeTypeKeyHashTable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 324a59f0b14af2544807199e055a1ac4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/TinyJsonReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd9d3de59693d9f49be777193cd4e846 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Internal/UnsafeMemory.Low.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea00cefaa2f44ee408f3975719c372cb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac624935c8c91944fb27e94539d30d46 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4/LZ4Codec.Helper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 135c503530b89854282de4c339084d74 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4/LZ4Codec.Safe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bfa77bfa8e74a914cada4663d406de46 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4/LZ4Codec.Safe32.Dirty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3af434f443715345a95c309036329e2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4/LZ4Codec.Safe64.Dirty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2af5a6e86034ed44e91f32d31686d882 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4/LZ4Codec.Unsafe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a48aac02d4c19049822a88ea40df7f5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4/LZ4Codec.Unsafe32.Dirty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70d519bda46ea2048bcde764d4f7088c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4/LZ4Codec.Unsafe64.Dirty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dd9161b1f56b464a8db9b3d96dca169 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/LZ4/LZ4Codec.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 467a42ca49e959542b69efdf5b046249 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePack.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MessagePack", 3 | "references": [ 4 | "MessagePack.Annotations" 5 | ], 6 | "optionalUnityReferences": [], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": true, 10 | "overrideReferences": true, 11 | "precompiledReferences": [ 12 | "System.Memory.dll", 13 | "System.Buffers.dll", 14 | "System.Threading.Tasks.Extensions.dll", 15 | "System.Runtime.CompilerServices.Unsafe.dll", 16 | "Microsoft.NET.StringTools.dll", 17 | "System.Runtime.Extensions.dll" 18 | ], 19 | "autoReferenced": true, 20 | "defineConstraints": [], 21 | "versionDefines": [] 22 | } 23 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePack.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbde805d927e795439d7a746d1749cab 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackCode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5abed96afe37b3c4e8d58b04054129c5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackCompression.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 726b009260cea9e45a7c8541e288ca31 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80f6863e06d288f489fcea7b5654b2cb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSecurity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3c0e646c712f8d4f95190e18802ec99 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializationException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 807a473ed38c2614db8e2e945c346dbb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializer.Json.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b519a41377bf3a489ab6db1e1044458 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializer.NonGeneric.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e094e2dba201ea84ba880d525ce8532e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d33e055ed9d0f484d9048fb29fa84ba3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackSerializerOptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 621e07593f75d314eb0388aa92ef6805 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackStreamReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40b616b9ee299b04c97f5efb6c1cde9c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MessagePackWriter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a22e47d7013792844bd7882f11f25e1d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/MonoProtection.cs.meta: -------------------------------------------------------------------------------- 1 | guid: 593f3b742b875ea48943776d02f8d3a9 2 | MonoImporter: 3 | externalObjects: {} 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Nil.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Buffers; 6 | using System.Data.Common; 7 | 8 | namespace MessagePack 9 | { 10 | #if MESSAGEPACK_INTERNAL 11 | internal 12 | #else 13 | public 14 | #endif 15 | struct Nil : IEquatable 16 | { 17 | public static readonly Nil Default = default(Nil); 18 | 19 | public static bool operator ==(Nil left, Nil right) => true; 20 | 21 | public static bool operator !=(Nil left, Nil right) => false; 22 | 23 | public override bool Equals(object obj) 24 | { 25 | return obj is Nil; 26 | } 27 | 28 | public bool Equals(Nil other) 29 | { 30 | return true; 31 | } 32 | 33 | public override int GetHashCode() 34 | { 35 | return 0; 36 | } 37 | 38 | public override string ToString() 39 | { 40 | return "()"; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Nil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5ce64c07ab69e449bdf3e4144c199dd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c4fd16a9f0636a2448b08c076b0d0b3d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/AttributeFormatterResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c02a22f37aeb19147a0a91b233f75622 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/BuiltinResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8576a58290a3c2f4b856a090338fe4e3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/CachingFormatterResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b890291dfa50d64eb8a47edaeae5a2e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/CompositeResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 855ae905af3dec6449d0ced09b158a43 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/ContractlessReflectionObjectResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e632f1a629022ed4daaff789f1209a31 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/DynamicEnumAsStringResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ceb07c86c3c5d534195759fcd8983804 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/DynamicEnumResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4100353110cfb7040b2fa50beb2390ad 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/DynamicGenericResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a246239c22950a44bb5bffdb3b388dd2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/DynamicObjectResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c701699b2f5475d448a963b344407181 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/DynamicUnionResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf9a25b7376eeda47ab1f62b045063bb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/ExpandoObjectResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96998b3cb6d6e044c95e399ea6d6da96 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/NativeDateTimeResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a20dfff612ed08419192bb868710915 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/NativeDecimalResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0711ad34c9883f244a09757b2470ed67 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/NativeGuidResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a30757bd25ef7c44ba11a2ecbe64a8c1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/PrimitiveObjectResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e84d60bb85b40b458a001118316145d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/ResolverUtilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4e2e1ebcc7467944a57bb9a3327820b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/StandardResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99e7c1a56d89ab645b824dae6b57d67c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/StaticCompositeResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d904ee272668ccb448b3159036454caf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/TypelessContractlessStandardResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6db1c844b382ce54680f6d0ba3476abb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Resolvers/TypelessObjectResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38df7384160fb4d478fcae83f15f45b2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/SafeBitConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a2f0bfda50859f4abf45bc978ea8b16 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/SequencePool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97164d8f34ce72f459fc5dff3dc7370f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/SequenceReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73a26645b66741b4081b24bbec4379c9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/SequenceReaderExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74337ad77e62e5942b20dc45b62ddeab 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/SipHash.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c78b7a26485c4131ae8bcfae61e01435 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/StreamPolyfillExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a129c39f0ce55af4fac3a1a6bcc1380e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/StringEncoding.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Diagnostics; 6 | using System.Runtime.CompilerServices; 7 | using System.Runtime.InteropServices; 8 | using System.Text; 9 | 10 | namespace MessagePack 11 | { 12 | internal static class StringEncoding 13 | { 14 | internal static readonly Encoding UTF8 = new UTF8Encoding(false); 15 | 16 | #if !NETCOREAPP // Define the extension method only where an instance method does not already exist. 17 | internal static unsafe string GetString(this Encoding encoding, ReadOnlySpan bytes) 18 | { 19 | if (bytes.Length == 0) 20 | { 21 | return string.Empty; 22 | } 23 | 24 | fixed (byte* pBytes = bytes) 25 | { 26 | return encoding.GetString(pBytes, bytes.Length); 27 | } 28 | } 29 | #endif 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/StringEncoding.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d573b17dc675bc4482fbc3e79f86dca 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/T4.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1245c7c06c9736e4f822470490920e08 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/T4/ForceSizePrimitiveFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ad9a757f1a235248aace5bb771bb786 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/T4/MessagePackReader.Integers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d034a54b76ed3944da5cd3666462e89e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/T4/PrimitiveFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb48ea027ca8fa84c8677fac8791b318 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/T4/TupleFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b14afc37320aee4daaa80c6b1e6529f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/T4/UnsafeMemory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50b6bcd206242f944833ba2d0548b028 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/T4/ValueTupleFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98e54c0165ce30446938aa828e753eb5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/ThisLibraryExtensionTypeCodes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d1907f02cbdd5942a88a8770336fe7e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd59b5f0ae164f9409ead73a9c4be0fb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Unity/Extension.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 031220404c62bc94da8ead6e623a7a44 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Unity/Extension/UnityBlitResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2780e6c52e347c540a336113d4a61fd3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Unity/Extension/UnsafeBlitFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 314e1d2058a6e9d4297aa329b34150d3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Unity/Formatters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43031b10b3132bf438ca856926d4a8f8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Unity/MessagePackWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7b2124e98ab01345a59ac40b0979625 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Unity/UnityResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88a64133a719d3e40a7725f13b2f0191 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Utilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f968cf11be4a47f42a5b1fcb33a6bf6b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/_InternalVisibleTo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | #if UNITY_2018_3_OR_NEWER 5 | 6 | [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("MessagePack.Tests")] 7 | [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Assembly-CSharp")] 8 | [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Assembly-CSharp-Editor")] 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/_InternalVisibleTo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f5e1e226cd7d794d9e787db25c31f2a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.neuecc.messagepack", 3 | "displayName": "MessagePack", 4 | "version": "2.4.35", 5 | "unity": "2018.4", 6 | "description": "Extremely Fast MessagePack Serializer for C#.", 7 | "keywords": [ 8 | "Serializer" 9 | ], 10 | "license": "MIT", 11 | "category": "Scripting" 12 | } 13 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/MessagePack/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b8639f4c743fac45bc51854f278b3b1 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a7c2a7db1bc8424397eb60db9ab8c12 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Class1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8320adf513c8aba4b97520b6c54dcaf6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Generated.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c7c6cccd73eb424ab9e96c87dfc1acd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Generated/GeneratedResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83a940d45983fcc44838973ca450dd43 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Loader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f8fb4df4d9ecb74c88f774a73916828 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/MsgPack.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4e7b753d6e308c4ba5b722c4b7f3a2e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/MsgPack/MsgPack.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/MessagePack-CSharp/9aeb12b9bdb024512ffe2e4bddfa2785dca6e39e/src/MessagePack.UnityClient/Assets/Scripts/Tests/MsgPack/MsgPack.dll -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/MsgPack/MsgPack.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68264162529643f4b95651903372982e 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6818b90f9113faf449f89c3dbc32c121 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/AllowPrivateTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82287a4d7f4e1814baf603459b140505 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/AnonymousTypeTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b02878ea4ce0a994594c7cb54fab4df6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/AutomataTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 123a059d58a379d4dbde054490ad1637 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ByteArrayComparerTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: acb02d290e7e77140b874abea72854f6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ByteArrayStringHashTableTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bb557e2a9ab1d2438ca432e6b020ca2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/CollectionTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79d444e32d5a37246b44a71688304d84 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ContractlessStandardResolverTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e20e6f466593ed04f9ffeba1f6177f26 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DataContractTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa618486ff276824780d9f2aa954a2b2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DictionaryTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24cd6864c7f1ad24db1713b3c61ae333 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectFallbackTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6633c2fd13eac445893e4533c8ed94a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectResolverConstructorTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb5b5155ee1d6d645a2342109205846d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectResolverDerivedAttributeInheritanceTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47b972c73e6ec6448a18203ffbf057d4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectResolverInterfaceTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 562cafaf73e9d4c4ea996a2484c2edba 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectResolverOrderTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1dee8a654fedabc4db607c4885127f24 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DynamicObjectResolverTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3bd589513a14cd47bace33c5c16de98 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/EnumAsStringTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b83e763440481945a514fc63c9950bd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ExpandoObjectTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b737bd464acef94685c082992b21a5a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ExtensionHeaderTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 10cc4a629f149104cadf8142b8c36314 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/FloatConversionTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b9c16b487cc8db4a91cb3c0eceffcbf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/FormatterTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6702bd6f976f7bf4fbc4037456699be1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/GenericFormatters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 992838eac2c03014697d04c0c828b1c7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/IgnoreTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cb2c993851bcaf4c80efe93ffea3552 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/LZ4Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79f96ad327acd1a4b958a7ec0a6cbb4f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackBinaryTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 937508c226a289a4aaf0129228847cb6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackFormatterPerFieldTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d963dd8b7d8ac6479d853fc1169eee2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackReaderTests.ReadString.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83aa417f2fe19a944a5efa3e1f083b40 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackReaderTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 536dfa75c03e2f9469675dea1d5d606c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackSecurityTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ee563309d2c26148b48c8532f2dc21b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackSerializerOptionsTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c3a2ab7df8497d4d9e0276feb196633 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackSerializerTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e10329f1021f2394f80a113aee2f869b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackSerializerTypelessTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4dd9f6a05b1a3b34cadf94b3cf86f9d6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackStreamReaderTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76cafd21b8f4d9a44a181dca662db083 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MessagePackWriterTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 652db240751a15b428e5ea19ebef89b4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MultiDimensionalArrayTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abb3ccc3c36c2bb43b477394f5611d1d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/MultibyteCharPropertyTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d2014cac87aaf742a885707ea1f0210 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/NewGuidFormatterTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5ad4fb67f249a247974b64fff7ecc58 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/NonGenericCollectionTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93a921c6f2817d949b3fbcad82d2bb0f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ObjectResolverTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5728df3325b81164097b89dd489018ae 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/OldSpecBinaryFormatterTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 817cf31957bc3cb439ad926b0e49c5b3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/OneByteAtATimeStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6a5f0376a7697c4bba2872792d438e8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/PrimitiveObjectFormatterTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9937df0c84c8d3940a110511ad8bc726 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/PrimitiveResolverTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f756a57ab361ee74ea4d34b8b3364a7a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/PrimitivelikeFormatterTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc0555d457a90e44d93a51a7aa6c1e21 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/SipHashTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c71df5af28304fe2991b6aaba359db90 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/SpecifiedFormatterResolverTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 541c1c4bfd8d6e145bcdd98476f12c25 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/StandardClassLibraryFormatterTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7c3f6c031c95c44e988e199d1c59288 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/StringInterningTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 593d09755237d984a95626a65167c3a7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/T4.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d4384a987a607b4cb16bb618063f151 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/T4/MessagePackReaderTests.ReadInt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f0dd84798929b04fb9a6e7495140b85 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/TestBase.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Diagnostics; 6 | using System.Text; 7 | using System.Threading; 8 | 9 | namespace MessagePack.Tests 10 | { 11 | public abstract class TestBase 12 | { 13 | protected readonly CancellationToken TimeoutToken = new CancellationTokenSource(TestTimeoutSpan).Token; 14 | 15 | private static readonly TimeSpan TestTimeoutSpan = Debugger.IsAttached ? Timeout.InfiniteTimeSpan : TimeSpan.FromSeconds(5); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/TestBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d6b0bae2b5dbc44ab2da3063c1b76f6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/TestConstants.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Text; 7 | 8 | namespace MessagePack.Tests 9 | { 10 | internal static class TestConstants 11 | { 12 | internal const string MultibyteCharString = "にほんごにほんごにほんごにほんごにほんご"; 13 | 14 | internal static readonly ReadOnlyMemory MsgPackEncodedMultibyteCharString = GetMsgPackEncodedMultibyteCharString(); 15 | 16 | private static byte[] GetMsgPackEncodedMultibyteCharString() 17 | { 18 | byte[] encodedString = Encoding.UTF8.GetBytes(MultibyteCharString); 19 | byte[] expectedBytes = new byte[2 + encodedString.Length]; 20 | expectedBytes[0] = MessagePackCode.Str8; 21 | expectedBytes[1] = checked((byte)encodedString.Length); 22 | Array.Copy(encodedString, 0, expectedBytes, 2, encodedString.Length); 23 | return expectedBytes; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/TestConstants.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5dfa727ef6a4e5459b11035eb29674e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/TestUtilities.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Diagnostics; 6 | using System.Text; 7 | using System.Threading; 8 | using Xunit.Abstractions; 9 | 10 | namespace MessagePack.Tests 11 | { 12 | internal static class TestUtilities 13 | { 14 | /// 15 | /// Gets a value indicating whether the mono runtime is executing this code. 16 | /// 17 | internal static bool IsRunningOnMono => Type.GetType("Mono.Runtime") != null; 18 | 19 | internal static string ToHex(byte[] buffer) => BitConverter.ToString(buffer).Replace("-", string.Empty).ToLowerInvariant(); 20 | } 21 | 22 | public class NullTestOutputHelper : ITestOutputHelper 23 | { 24 | public void WriteLine(string message) 25 | { 26 | } 27 | 28 | public void WriteLine(string format, params object[] args) 29 | { 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/TestUtilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79f84b35710b6d04c86439e0e6630aa8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ToJsonTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04cc8495a56deb048ad0f8fbd5d1e7cb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/UnionResolverTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 72cee026c3c7f864387e1fdf5e548b6c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/UnsafeFormattersTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d292ecc87d9e98246a42c417da6d2eb6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/UnsafeMemoryTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d4ee9d058bf0804c9992bba6ab39b64 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5409056a0ea673e45831b32c3f86118d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/Utils/ChainingAssertion.Ext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71c31e2815f05de47855e34c6850bbc6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/ValueTupleTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e490457980adff4a819041212566e05 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Shims.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3190bb35428741143b9770de8d601246 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Shims/ChainingAssertion.Unity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85707c419a3bb384bb7dc5c4083e0b09 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Shims/XUnit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1770ba4f39d386941b4d373d271adfb5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MessagePack.Tests", 3 | "rootNamespace": "", 4 | "references": [ 5 | "MessagePack", 6 | "MessagePack.Annotations", 7 | "RuntimeUnitTestToolkit", 8 | "UnityEngine.TestRunner", 9 | "UnityEditor.TestRunner" 10 | ], 11 | "includePlatforms": [], 12 | "excludePlatforms": [], 13 | "allowUnsafeCode": true, 14 | "overrideReferences": true, 15 | "precompiledReferences": [ 16 | "System.Memory.dll", 17 | "System.Buffers.dll", 18 | "System.Threading.Tasks.Extensions.dll", 19 | "System.Runtime.CompilerServices.Unsafe.dll", 20 | "System.Runtime.Extensions.dll", 21 | "nunit.framework.dll", 22 | "MsgPack.dll" 23 | ], 24 | "autoReferenced": false, 25 | "defineConstraints": [ 26 | "UNITY_INCLUDE_TESTS" 27 | ], 28 | "versionDefines": [], 29 | "noEngineReferences": false 30 | } -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/Assets/Scripts/Tests/Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00377cd9294f890479d50a176e226cf9 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 108 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea, 13 | type: 2} 14 | - type: 15 | m_NativeTypeID: 1020 16 | m_ManagedTypePPtr: {fileID: 0} 17 | m_ManagedTypeFallback: 18 | defaultPresets: 19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6, 20 | type: 2} 21 | - type: 22 | m_NativeTypeID: 1006 23 | m_ManagedTypePPtr: {fileID: 0} 24 | m_ManagedTypeFallback: 25 | defaultPresets: 26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9, 27 | type: 2} 28 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.1.10f1 2 | m_EditorVersionWithRevision: 2019.1.10f1 (f007ed779b7a) 3 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - PostProcessing 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 1 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 1 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/UWP/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0" 4 | }, 5 | "frameworks": { 6 | "uap10.0": {} 7 | }, 8 | "runtimes": { 9 | "win10-arm": {}, 10 | "win10-arm-aot": {}, 11 | "win10-x86": {}, 12 | "win10-x86-aot": {}, 13 | "win10-x64": {}, 14 | "win10-x64-aot": {} 15 | } 16 | } -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal 3 | 4 | IF NOT EXIST "%~dp0Assets/Microsoft.VisualStudio.Threading.dll" CALL "%~dp0copy_assets.bat" 5 | 6 | IF "%Build_ArtifactStagingDirectory%"=="" ( 7 | SET LogDirectory=%~dp0..\..\bin\build_logs 8 | ) ELSE ( 9 | SET LogDirectory=%Build_ArtifactStagingDirectory%\build_logs 10 | ) 11 | IF NOT EXIST "%LogDirectory%" MD "%LogDirectory%" 12 | 13 | ECHO Log files will be created under "%LogDirectory%" 14 | 15 | echo on 16 | start "Unity PACKAGE" /wait "c:\Program Files\unity\editor\Unity.exe" -batchmode -quit -nographics -silent-crashes -noUpm -buildTarget standalone -projectPath "%~dp0\" -executeMethod PackageExport.Export -logfile "%LogDirectory%\unity_package.log" 17 | @IF ERRORLEVEL 1 ( 18 | ECHO Package build FAILED 19 | exit /b %ERRORLEVEL% 20 | ) 21 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while getopts l: opts; do 4 | case ${opts} in 5 | l) LOGFILE=${OPTARG} ;; 6 | esac 7 | done 8 | 9 | SCRIPT_DIR=$(dirname "$(realpath $0)") 10 | 11 | if ! [[ -e "${SCRIPT_DIR}/Assets/Plugins/System.Memory.dll" ]] ; then 12 | ${SCRIPT_DIR}/copy_assets.sh 13 | fi 14 | 15 | if ! [[ -v LOGFILE ]] ; then 16 | LOGFILE=${SCRIPT_DIR}/../../bin/build_logs/unity_package.log 17 | fi 18 | LOGDIR=$(dirname "${LOGFILE}") 19 | if ! [ -d $LOGDIR ] ; then 20 | mkdir -p $LOGDIR 21 | fi 22 | 23 | echo Writing log to ${LOGFILE} 24 | 25 | $UNITYHUB_EDITORS_FOLDER_LOCATION/Unity \ 26 | -batchmode \ 27 | -quit \ 28 | -nographics \ 29 | -silent-crashes \ 30 | -noUpm \ 31 | -buildTarget standalone \ 32 | -projectPath ${SCRIPT_DIR} \ 33 | -executeMethod PackageExporter.Export \ 34 | -logfile ${LOGFILE} 35 | 36 | UnityExitCode=$? 37 | 38 | echo Log follows... 39 | 40 | cat ${LOGFILE} 41 | 42 | exit $UnityExitCode 43 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/code_generate.bat: -------------------------------------------------------------------------------- 1 | dotnet run -p "..\MessagePack.Generator\MessagePack.Generator.csproj" -- -i "Tests.csproj" -o "Assets\Scripts\Tests\Generated\GeneratedResolver.cs" -c "UNITY_2018_3_OR_NEWER,NET_STANDARD_2_0,ENABLE_IL2CPP" -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while getopts r:l: opts; do 4 | case ${opts} in 5 | l) LOGFILE=${OPTARG} ;; 6 | r) TESTRESULTS=${OPTARG} ;; 7 | esac 8 | done 9 | 10 | SCRIPT_DIR=$(dirname "$(realpath $0)") 11 | if ! [[ -v LOGFILE ]] ; then 12 | LOGFILE=${SCRIPT_DIR}/../../bin/build_logs/unity_tests.log 13 | fi 14 | if ! [[ -v TESTRESULTS ]] ; then 15 | TESTRESULTS=${SCRIPT_DIR}/../../bin/build_logs/unity_testresults.xml 16 | fi 17 | 18 | echo Writing log to ${LOGFILE} 19 | 20 | /opt/Unity/Editor/Unity \ 21 | -batchmode \ 22 | -quit \ 23 | -nographics \ 24 | -silent-crashes \ 25 | -noUpm \ 26 | -buildTarget standalone \ 27 | -projectPath ${SCRIPT_DIR} \ 28 | -runEditorTests 29 | -editorTestsResultFile ${TESTRESULTS} \ 30 | -logfile ${LOGFILE} 31 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/unity_applylicense.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while getopts i:l: opts; do 4 | case ${opts} in 5 | i) ULF=${OPTARG} ;; 6 | l) LOGFILE=${OPTARG} ;; 7 | esac 8 | done 9 | 10 | if ! [[ -v ULF ]] ; then 11 | echo Missing required -i parameter. 12 | exit 1 13 | fi 14 | 15 | if [[ -v LOGFILE ]] ; then 16 | echo Writing log to ${LOGFILE} 17 | fi 18 | 19 | /opt/Unity/Editor/Unity -batchmode -quit -nographics -logfile ${LOGFILE} -manualLicenseFile ${ULF} 20 | -------------------------------------------------------------------------------- /src/MessagePack.UnityClient/unity_requestlicense.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while getopts l: opts; do 4 | case ${opts} in 5 | l) LOGFILE=${OPTARG} ;; 6 | esac 7 | done 8 | 9 | if [[ -v LOGFILE ]] ; then 10 | echo Writing log to ${LOGFILE} 11 | fi 12 | 13 | /opt/Unity/Editor/Unity -batchmode -quit -nographics -logfile ${LOGFILE} -createManualActivationFile 14 | -------------------------------------------------------------------------------- /src/MessagePack/BannedSymbols.txt: -------------------------------------------------------------------------------- 1 | M:Nerdbank.Streams.Sequence`1.#ctor; Use SequencePool.Shared.Rent() instead 2 | -------------------------------------------------------------------------------- /src/MessagePack/net5.0/PublicAPI.Unshipped.txt: -------------------------------------------------------------------------------- 1 | MessagePack.Formatters.StringInterningFormatter 2 | MessagePack.Formatters.StringInterningFormatter.Deserialize(ref MessagePack.MessagePackReader reader, MessagePack.MessagePackSerializerOptions options) -> string 3 | MessagePack.Formatters.StringInterningFormatter.Serialize(ref MessagePack.MessagePackWriter writer, string value, MessagePack.MessagePackSerializerOptions options) -> void 4 | MessagePack.Formatters.StringInterningFormatter.StringInterningFormatter() -> void 5 | MessagePack.MessagePackSerializerOptions.CompressionMinLength.get -> int 6 | MessagePack.MessagePackSerializerOptions.WithCompressionMinLength(int compressionMinLength) -> MessagePack.MessagePackSerializerOptions -------------------------------------------------------------------------------- /src/MessagePack/netcoreapp3.1/PublicAPI.Unshipped.txt: -------------------------------------------------------------------------------- 1 | MessagePack.Formatters.StringInterningFormatter 2 | MessagePack.Formatters.StringInterningFormatter.Deserialize(ref MessagePack.MessagePackReader reader, MessagePack.MessagePackSerializerOptions options) -> string 3 | MessagePack.Formatters.StringInterningFormatter.Serialize(ref MessagePack.MessagePackWriter writer, string value, MessagePack.MessagePackSerializerOptions options) -> void 4 | MessagePack.Formatters.StringInterningFormatter.StringInterningFormatter() -> void 5 | MessagePack.MessagePackSerializerOptions.CompressionMinLength.get -> int 6 | MessagePack.MessagePackSerializerOptions.SuggestedContiguousMemorySize.get -> int 7 | MessagePack.MessagePackSerializerOptions.WithCompressionMinLength(int compressionMinLength) -> MessagePack.MessagePackSerializerOptions 8 | MessagePack.MessagePackSerializerOptions.WithSuggestedContiguousMemorySize(int suggestedContiguousMemorySize) -> MessagePack.MessagePackSerializerOptions 9 | -------------------------------------------------------------------------------- /src/MessagePack/netstandard2.0/PublicAPI.Unshipped.txt: -------------------------------------------------------------------------------- 1 | MessagePack.Formatters.StringInterningFormatter 2 | MessagePack.Formatters.StringInterningFormatter.Deserialize(ref MessagePack.MessagePackReader reader, MessagePack.MessagePackSerializerOptions options) -> string 3 | MessagePack.Formatters.StringInterningFormatter.Serialize(ref MessagePack.MessagePackWriter writer, string value, MessagePack.MessagePackSerializerOptions options) -> void 4 | MessagePack.Formatters.StringInterningFormatter.StringInterningFormatter() -> void 5 | MessagePack.MessagePackSerializerOptions.CompressionMinLength.get -> int 6 | MessagePack.MessagePackSerializerOptions.SuggestedContiguousMemorySize.get -> int 7 | MessagePack.MessagePackSerializerOptions.WithCompressionMinLength(int compressionMinLength) -> MessagePack.MessagePackSerializerOptions 8 | MessagePack.MessagePackSerializerOptions.WithSuggestedContiguousMemorySize(int suggestedContiguousMemorySize) -> MessagePack.MessagePackSerializerOptions -------------------------------------------------------------------------------- /src/MessagePackAnalyzer/AnalyzerUtilities.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | namespace MessagePackAnalyzer 5 | { 6 | internal static class AnalyzerUtilities 7 | { 8 | internal static string GetHelpLink(string diagnosticId) => $"https://github.com/neuecc/MessagePack-CSharp/blob/master/doc/analyzers/{diagnosticId}.md"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /stylecop.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", 3 | "settings": { 4 | "documentationRules": { 5 | "copyrightText": "Copyright (c) All contributors. All rights reserved.\nLicensed under the {licenseName} license. See {licenseFile} file in the project root for full license information.", 6 | "variables": { 7 | "licenseName": "MIT", 8 | "licenseFile": "LICENSE" 9 | }, 10 | "fileNamingConvention": "metadata", 11 | "xmlHeader": false 12 | }, 13 | "layoutRules": { 14 | "newlineAtEndOfFile": "require" 15 | }, 16 | "orderingRules": { 17 | "systemUsingDirectivesFirst": true, 18 | "usingDirectivesPlacement": "outsideNamespace" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/MessagePack.AspNetCoreMvcFormatter.Tests/MessagePack.AspNetCoreMvcFormatter.Tests.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | netcoreapp3.1 5 | 6 | false 7 | ..\MessagePack.Tests\MessagePack.Tests.ruleset 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/MessagePack.GeneratedCode.Tests/MessagePack.GeneratedCode.Tests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.1 5 | 6 | false 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/MessagePack.Generator.Tests/TestUtilities.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.Reflection; 5 | 6 | namespace MessagePack.Generator.Tests 7 | { 8 | internal static class TestUtilities 9 | { 10 | /// 11 | /// Fetches the static instance of the named resolver, by its Instance property. 12 | /// 13 | /// The assembly to retrieve the resolver from. 14 | /// The full name of the resolver. 15 | /// The resolver. 16 | internal static IFormatterResolver GetResolverInstance(Assembly assembly, string name) 17 | { 18 | var resolverType = assembly.GetType(name); 19 | return (IFormatterResolver)resolverType.GetField("Instance", BindingFlags.Static | BindingFlags.Public).GetValue(null); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/MessagePack.Internal.Tests/MessagePackInternalTest.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System; 5 | using System.Collections.Concurrent; 6 | using System.Collections.Generic; 7 | using System.Collections.ObjectModel; 8 | using System.Linq; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using Xunit; 12 | 13 | namespace MessagePack.Internal.Test 14 | { 15 | public class MessagePackInternalTest 16 | { 17 | [Fact] 18 | public void NoTypesAreExportedByMessagePackInternalAssembly() 19 | { 20 | System.Reflection.Assembly assembly = typeof(MessagePackReader).Assembly; 21 | 22 | Assert.Empty(assembly.ExportedTypes); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/MessagePack.Tests/IsExternalInit.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | #if !NET5_0_OR_GREATER 5 | 6 | #pragma warning disable CA1812 7 | 8 | namespace System.Runtime.CompilerServices 9 | { 10 | /// 11 | /// Used by C# 9 for property init accessors. 12 | /// 13 | internal sealed class IsExternalInit 14 | { 15 | } 16 | } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /tests/MessagePack.Tests/MessagePack.Tests.ruleset: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MessagePackAnalyzer.Tests/.gitattributes: -------------------------------------------------------------------------------- 1 | # Our analyzer code fix tests fail when checked out with LF endings. 2 | # Probably a bug in our code fixer that doesn't respect the input document's own line endings. 3 | *.cs text eol=crlf 4 | -------------------------------------------------------------------------------- /tests/MessagePackAnalyzer.Tests/Helpers/ReferencesHelper.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) All contributors. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 | 4 | using System.Collections.Immutable; 5 | using Microsoft.CodeAnalysis.Testing; 6 | 7 | internal static class ReferencesHelper 8 | { 9 | internal static ReferenceAssemblies DefaultReferences = ReferenceAssemblies.NetFramework.Net472.Default 10 | .WithPackages(ImmutableArray.Create( 11 | new PackageIdentity("MessagePack", "2.0.335"))); 12 | } 13 | -------------------------------------------------------------------------------- /tools/Check-DotNetSdk.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Checks whether the .NET Core SDK required by this repo is installed. 4 | #> 5 | [CmdletBinding()] 6 | Param ( 7 | ) 8 | 9 | $dotnet = Get-Command dotnet -ErrorAction SilentlyContinue 10 | if (!$dotnet) { 11 | # Nothing is installed. 12 | Write-Output $false 13 | exit 1 14 | } 15 | 16 | # We need to set the current directory so dotnet considers the SDK required by our global.json file. 17 | Push-Location "$PSScriptRoot\.." 18 | try { 19 | dotnet -h 2>&1 | Out-Null 20 | if (($LASTEXITCODE -eq 129) -or # On Linux 21 | ($LASTEXITCODE -eq -2147450751) # On Windows 22 | ) { 23 | # These exit codes indicate no matching SDK exists. 24 | Write-Output $false 25 | exit 2 26 | } 27 | 28 | # The required SDK is already installed! 29 | Write-Output $true 30 | exit 0 31 | } catch { 32 | # I don't know why, but on some build agents (e.g. MicroBuild), an exception is thrown from the `dotnet` invocation when a match is not found. 33 | Write-Output $false 34 | exit 3 35 | } finally { 36 | Pop-Location 37 | } 38 | -------------------------------------------------------------------------------- /version.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", 3 | "version": "2.4", 4 | "publicReleaseRefSpec": [ 5 | "^refs/heads/master$", 6 | "^refs/heads/v1\\.x$", 7 | "^refs/heads/v\\d+(?:.\\d+)?$", 8 | "^refs/heads/develop$" 9 | ] 10 | } 11 | --------------------------------------------------------------------------------