FlatSharp.Compiler 7.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FlatSharp.Compiler --version 7.5.0
                    
NuGet\Install-Package FlatSharp.Compiler -Version 7.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FlatSharp.Compiler" Version="7.5.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FlatSharp.Compiler" Version="7.5.0" />
                    
Directory.Packages.props
<PackageReference Include="FlatSharp.Compiler">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FlatSharp.Compiler --version 7.5.0
                    
#r "nuget: FlatSharp.Compiler, 7.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=FlatSharp.Compiler&version=7.5.0
                    
Install as a Cake Addin
#tool nuget:?package=FlatSharp.Compiler&version=7.5.0
                    
Install as a Cake Tool

Welcome to FlatSharp!

Thanks for using FlatSharp! FlatSharp is a C# FlatBuffers implementation designed to be secure, fast, and easy to use.

Quick Resources

Issues, Contributions, and Feedback

FlatSharp is open source. Find it on GitHub! Issues, contributions, and other feedback are always welcome. Don't be a stranger! If you have feedback to share, please consider filling out the form here!

Sponsorship

FlatSharp is free and always will be. However, the project does take a significant amount of time to maintain. If you or your organization find the project useful, please consider a Github sponsorship. Any amount is appreciated!

Quick Start

1. Reference FlatSharp

Reference both FlatSharp.Runtime and FlatSharp.Compiler. Use the same version for them both.

2. Define a Schema
// all FlatSharp FBS attributes start with the 'fs_' prefix.
attribute "fs_serializer";

namespace MyNamespace;

enum Color : ubyte { Red = 1, Green, Blue }

table Person (fs_serializer) {
    Id:int;
    Name:string;
    Parent:Person (deprecated);
    Children:[Person];
    FavoriteColor:Color = Blue;
    Position:Location;
}

struct Location {
    Latitude:float;
    Longitude:float;
}
3. Update Your csproj
   <ItemGroup>
     <FlatSharpSchema Include="YourSchema.fbs" />
   </ItemGroup>
4. Serialize Your Data
Person person = new Person(...);
int maxBytesNeeded = Person.Serializer.GetMaxSize(person);
byte[] buffer = new byte[maxBytesNeeded];
int bytesWritten = Person.Serializer.Serialize(buffer, person);
5. Parse Your Data
Person p = Person.Serializer.Parse(data);

License

FlatSharp is licensed under Apache 2.0. Have fun 😃

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.9.0 1,386 5/26/2025
7.8.0 15,708 11/14/2024
7.7.0 14,888 5/31/2024
7.6.0 163,712 3/14/2024
7.5.1 2,375 2/25/2024
7.5.0 645 2/23/2024
7.4.0 36,476 12/2/2023
7.3.0 3,959 9/12/2023
7.2.3 5,050 8/11/2023
7.2.1 1,053 8/4/2023
7.2.0 484 8/3/2023
7.1.1 5,236 3/17/2023
7.1.0 4,101 1/31/2023
7.0.2 7,971 11/25/2022
7.0.1 782 11/18/2022
7.0.0 658 11/17/2022
6.3.5 3,521 11/4/2022 6.3.5 is deprecated because it is no longer maintained.
6.3.3 3,446 10/1/2022 6.3.3 is deprecated because it is no longer maintained.
6.3.2 1,527 9/21/2022 6.3.2 is deprecated because it is no longer maintained.
6.3.1 7,350 4/26/2022 6.3.1 is deprecated because it is no longer maintained.
6.3.0 949 4/24/2022 6.3.0 is deprecated because it is no longer maintained.
6.2.1 1,239 3/15/2022 6.2.1 is deprecated because it is no longer maintained.
6.2.0 2,665 2/17/2022 6.2.0 is deprecated because it is no longer maintained.
6.1.1 872 2/7/2022 6.1.1 is deprecated because it is no longer maintained.
6.1.0 883 2/4/2022 6.1.0 is deprecated because it is no longer maintained.
6.0.5 1,430 1/6/2022 6.0.5 is deprecated because it is no longer maintained.
6.0.4 14,275 12/16/2021 6.0.4 is deprecated because it is no longer maintained.
6.0.3 655 12/14/2021 6.0.3 is deprecated because it is no longer maintained.
6.0.2 714 12/8/2021 6.0.2 is deprecated because it is no longer maintained.
6.0.1 622 12/6/2021 6.0.1 is deprecated because it is no longer maintained.
6.0.0 1,251 9/18/2021 6.0.0 is deprecated because it is no longer maintained.
5.7.1 4,401 8/26/2021 5.7.1 is deprecated because it is no longer maintained.
5.7.0 7,574 8/24/2021 5.7.0 is deprecated because it is no longer maintained.
5.6.0 3,426 7/27/2021 5.6.0 is deprecated because it is no longer maintained.
5.5.0 2,953 7/1/2021 5.5.0 is deprecated because it is no longer maintained.
5.4.1 3,316 6/22/2021 5.4.1 is deprecated because it is no longer maintained.
5.4.0 3,093 6/9/2021 5.4.0 is deprecated because it is no longer maintained.
5.3.1 3,218 5/30/2021 5.3.1 is deprecated because it is no longer maintained.
5.3.0 2,946 5/23/2021 5.3.0 is deprecated because it is no longer maintained.
5.2.1 3,256 5/7/2021 5.2.1 is deprecated because it is no longer maintained.
5.2.0 3,492 4/12/2021 5.2.0 is deprecated because it is no longer maintained.
5.1.0 3,980 3/18/2021 5.1.0 is deprecated because it is no longer maintained.
5.0.1 1,754 3/14/2021 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,714 3/10/2021 5.0.0 is deprecated because it is no longer maintained.
4.2.4 1,799 2/22/2021 4.2.4 is deprecated because it is no longer maintained.
4.2.3 1,650 2/16/2021 4.2.3 is deprecated because it is no longer maintained.
4.2.2 1,703 2/14/2021 4.2.2 is deprecated because it is no longer maintained.
4.2.1 1,690 2/14/2021 4.2.1 is deprecated because it is no longer maintained.
4.2.0 1,647 2/14/2021 4.2.0 is deprecated because it is no longer maintained.
4.1.0 3,289 10/17/2020 4.1.0 is deprecated because it is no longer maintained.
4.0.2 1,867 10/11/2020 4.0.2 is deprecated because it is no longer maintained.
4.0.1 1,736 10/8/2020 4.0.1 is deprecated because it is no longer maintained.
4.0.0 1,774 10/7/2020 4.0.0 is deprecated because it is no longer maintained.
3.3.1 1,885 9/7/2020 3.3.1 is deprecated because it is no longer maintained.
3.3.0 1,883 8/20/2020 3.3.0 is deprecated because it is no longer maintained.
3.2.0 1,868 7/30/2020 3.2.0 is deprecated because it is no longer maintained.
3.1.1 1,790 7/28/2020 3.1.1 is deprecated because it is no longer maintained.
3.1.0 1,834 7/27/2020 3.1.0 is deprecated because it is no longer maintained.
3.0.0 2,308 3/30/2020 3.0.0 is deprecated because it is no longer maintained.
2.1.1 1,900 2/9/2020 2.1.1 is deprecated because it is no longer maintained.
2.1.0 1,842 2/9/2020 2.1.0 is deprecated because it is no longer maintained.
2.0.2 1,797 2/5/2020 2.0.2 is deprecated because it is no longer maintained.
2.0.1 1,782 2/5/2020 2.0.1 is deprecated because it is no longer maintained.
2.0.0 1,748 2/2/2020 2.0.0 is deprecated because it is no longer maintained.
1.2.0 1,732 1/30/2020 1.2.0 is deprecated because it is no longer maintained.
1.1.0 1,886 1/26/2020 1.1.0 is deprecated because it is no longer maintained.