mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
* Add overloads to Add/Put for ArraySegment and IntPtr In order to allow using code to reduce memory allocations, add overloads to ByteBuffer's and FlatBuffersBuilder's Put/Add methods that take ArraySegment<T> or IntPtr respectively. Also, adaptions to the c# code generator in flatc to emit corresponding CreateVectorBlock() overloads * Add missing files generated with generate_code.py The previous commit changed the C# code generate, but didn't contain the updated generated test files. * Incorporate review findings (1) Adhere to 80 characters limit. (2) In FlatBufferBuilder.Add(IntPtr,int), move zero length check topmost and add sanity check against negative input
228 lines
9.3 KiB
XML
228 lines
9.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
<ProjectGuid>{9DB0B5E7-757E-4BD1-A5F6-279390331254}</ProjectGuid>
|
|
<OutputType>Exe</OutputType>
|
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
<RootNamespace>FlatBuffers.Test</RootNamespace>
|
|
<AssemblyName>FlatBuffers.Test</AssemblyName>
|
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
|
<RuntimeIdentifier>win</RuntimeIdentifier>
|
|
<LangVersion>4</LangVersion>
|
|
<FileAlignment>512</FileAlignment>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\Debug\</OutputPath>
|
|
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
<DebugType>pdbonly</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\Release\</OutputPath>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<StartupObject />
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(UnsafeByteBuffer)' == 'true'">
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<DefineConstants>$(DefineConstants);UNSAFE_BYTEBUFFER</DefineConstants>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Newtonsoft.Json">
|
|
<Version>12.0.3</Version>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
|
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net35\Newtonsoft.Json.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Core">
|
|
</Reference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="..\..\net\FlatBuffers\ByteBuffer.cs">
|
|
<Link>FlatBuffers\ByteBuffer.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\net\FlatBuffers\ByteBufferUtil.cs">
|
|
<Link>FlatBuffers\ByteBufferUtil.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\net\FlatBuffers\IFlatbufferObject.cs">
|
|
<Link>FlatBuffers\IFlatbufferObject.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\net\FlatBuffers\Offset.cs">
|
|
<Link>FlatBuffers\Offset.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\net\FlatBuffers\FlatBufferBuilder.cs">
|
|
<Link>FlatBuffers\FlatBufferBuilder.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\net\FlatBuffers\FlatBufferConstants.cs">
|
|
<Link>FlatBuffers\FlatBufferConstants.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\net\FlatBuffers\Struct.cs">
|
|
<Link>FlatBuffers\Struct.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\..\net\FlatBuffers\Table.cs">
|
|
<Link>FlatBuffers\Table.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example2\Monster.cs">
|
|
<Link>MyGame\Example2\Monster.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Any.cs">
|
|
<Link>MyGame\Example\Any.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\AnyAmbiguousAliases.cs">
|
|
<Link>MyGame\Example\AnyAmbiguousAliases.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\AnyUniqueAliases.cs">
|
|
<Link>MyGame\Example\AnyUniqueAliases.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Color.cs">
|
|
<Link>MyGame\Example\Color.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Race.cs">
|
|
<Link>MyGame\Example\Race.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Monster.cs">
|
|
<Link>MyGame\Example\Monster.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Referrable.cs">
|
|
<Link>MyGame\Example\Referrable.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Stat.cs">
|
|
<Link>MyGame\Example\Stat.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Test.cs">
|
|
<Link>MyGame\Example\Test.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\TestSimpleTableWithEnum.cs">
|
|
<Link>MyGame\Example\TestSimpleTableWithEnum.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\TypeAliases.cs">
|
|
<Link>MyGame\Example\TypeAliases.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Vec3.cs">
|
|
<Link>MyGame\Example\Vec3.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\Ability.cs">
|
|
<Link>MyGame\Example\Ability.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\ArrayTable.cs">
|
|
<Link>MyGame\Example\ArrayTable.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\ArrayStruct.cs">
|
|
<Link>MyGame\Example\ArrayStruct.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\NestedStruct.cs">
|
|
<Link>MyGame\Example\NestedStruct.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\Example\TestEnum.cs">
|
|
<Link>MyGame\Example\TestEnum.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\MyGame\InParentNamespace.cs">
|
|
<Link>MyGame\InParentNamespace.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\namespace_test\NamespaceA\NamespaceB\EnumInNestedNS.cs">
|
|
<Link>NamespaceA\NamespaceB\EnumInNestedNS.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\namespace_test\NamespaceA\NamespaceB\StructInNestedNS.cs">
|
|
<Link>NamespaceA\NamespaceB\StructInNestedNS.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\namespace_test\NamespaceA\NamespaceB\TableInNestedNS.cs">
|
|
<Link>NamespaceA\NamespaceB\TableInNestedNS.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\namespace_test\NamespaceA\NamespaceB\UnionInNestedNS.cs">
|
|
<Link>NamespaceA\NamespaceB\UnionInNestedNS.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\namespace_test\NamespaceA\TableInFirstNS.cs">
|
|
<Link>NamespaceA\TableInFirstNS.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\union_vector\Attacker.cs">
|
|
<Link>union_vector\Attacker.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\union_vector\BookReader.cs">
|
|
<Link>union_vector\BookReader.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\union_vector\Character.cs">
|
|
<Link>union_vector\Character.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\union_vector\Movie.cs">
|
|
<Link>union_vector\Movie.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\union_vector\Rapunzel.cs">
|
|
<Link>union_vector\Rapunzel.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\optional_scalars\OptionalByte.cs">
|
|
<Link>optional_scalars\OptionalByte.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\optional_scalars\ScalarStuff.cs">
|
|
<Link>optional_scalars\ScalarStuff.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\KeywordTest\ABC.cs">
|
|
<Link>KeywordTest\ABC.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\KeywordTest\public.cs">
|
|
<Link>KeywordTest\public.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\KeywordTest\KeywordsInTable.cs">
|
|
<Link>KeywordTest\KeywordsInTable.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\KeywordTest\KeywordsInUnion.cs">
|
|
<Link>KeywordTest\KeywordsInUnion.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\nested_namespace_test\nested_namespace_test1_generated.cs">
|
|
<Link>nested_namespace_test\nested_namespace_test1_generated.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\nested_namespace_test\nested_namespace_test2_generated.cs">
|
|
<Link>nested_namespace_test\nested_namespace_test2_generated.cs</Link>
|
|
</Compile>
|
|
<Compile Include="..\nested_namespace_test\nested_namespace_test3_generated.cs">
|
|
<Link>nested_namespace_test\nested_namespace_test3_generated.cs</Link>
|
|
</Compile>
|
|
<Compile Include="Assert.cs" />
|
|
<Compile Include="ByteBufferTests.cs" />
|
|
<Compile Include="FlatBufferBuilderTests.cs" />
|
|
<Compile Include="FlatBuffersFuzzTests.cs" />
|
|
<Compile Include="FlatBuffersTestClassAttribute.cs" />
|
|
<Compile Include="FlatBuffersTestMethodAttribute.cs" />
|
|
<Compile Include="FuzzTestData.cs" />
|
|
<Compile Include="Lcg.cs" />
|
|
<Compile Include="Program.cs" />
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
<Compile Include="FlatBuffersExampleTests.cs" />
|
|
<Compile Include="TestTable.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="..\monsterdata_test.mon">
|
|
<Link>Resources\monsterdata_test.mon</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
<Content Include="..\monsterdata_test.json">
|
|
<Link>Resources\monsterdata_test.json</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="packages.config" />
|
|
</ItemGroup>
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
Other similar extension points exist, see Microsoft.Common.targets.
|
|
<Target Name="BeforeBuild">
|
|
</Target>
|
|
<Target Name="AfterBuild">
|
|
</Target>
|
|
-->
|
|
</Project> |