![]() |
VOOZH | about |
dotnet add package FlatSharp.Compiler --version 7.9.0
NuGet\Install-Package FlatSharp.Compiler -Version 7.9.0
<PackageReference Include="FlatSharp.Compiler" Version="7.9.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageVersion Include="FlatSharp.Compiler" Version="7.9.0" />Directory.Packages.props
<PackageReference Include="FlatSharp.Compiler"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>Project file
paket add FlatSharp.Compiler --version 7.9.0
#r "nuget: FlatSharp.Compiler, 7.9.0"
#:package FlatSharp.Compiler@7.9.0
#addin nuget:?package=FlatSharp.Compiler&version=7.9.0Install as a Cake Addin
#tool nuget:?package=FlatSharp.Compiler&version=7.9.0Install as a Cake Tool
Thanks for using FlatSharp! FlatSharp is a C# FlatBuffers implementation designed to be secure, fast, and easy to use.
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!
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!
Reference both FlatSharp.Runtime and FlatSharp.Compiler. Use the same version for them both.
// 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;
}
<ItemGroup>
<FlatSharpSchema Include="YourSchema.fbs" />
</ItemGroup>
Person person = new Person(...);
int maxBytesNeeded = Person.Serializer.GetMaxSize(person);
byte[] buffer = new byte[maxBytesNeeded];
int bytesWritten = Person.Serializer.Serialize(buffer, person);
Person p = Person.Serializer.Parse(data);
FlatSharp is licensed under Apache 2.0. Have fun 😃
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
This package is not used by any NuGet packages.
Showing the top 5 popular GitHub repositories that depend on FlatSharp.Compiler:
| Repository | Stars |
|---|---|
|
kwsch/pkNX
Pokémon (Nintendo Switch) ROM Editor & Randomizer
|
|
|
LegoFigure11/RaidCrawler
Raid Viewer for Pokémon Scarlet and Violet
|
|
|
Nenkai/GBFRDataTools
Tools/Libraries for dealing with Granblue Fantasy: Relink.
|
|
|
LeagueToolkit/LeagueToolkit
LeagueToolkit is a library for parsing and editing assets from League of Legends
|
|
|
0ceal0t/Dalamud-VFXEditor
VFX, animation, sound, and physics editing plugin for FFXIV
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 7.9.0 | 16,514 | 5/26/2025 | |
| 7.8.0 | 23,960 | 11/14/2024 | |
| 7.7.0 | 15,267 | 5/31/2024 | |
| 7.6.0 | 166,929 | 3/14/2024 | |
| 7.5.1 | 2,748 | 2/25/2024 | |
| 7.5.0 | 752 | 2/23/2024 | |
| 7.4.0 | 38,989 | 12/2/2023 | |
| 7.3.0 | 4,811 | 9/12/2023 | |
| 7.2.3 | 5,160 | 8/11/2023 | |
| 7.2.1 | 1,152 | 8/4/2023 | |
| 7.2.0 | 590 | 8/3/2023 | |
| 7.1.1 | 5,499 | 3/17/2023 | |
| 7.1.0 | 4,263 | 1/31/2023 | |
| 7.0.2 | 8,152 | 11/25/2022 | |
| 7.0.1 | 900 | 11/18/2022 | |
| 7.0.0 | 830 | 11/17/2022 | |
| 6.3.5 | 3,721 | 11/4/2022 | 6.3.5 is deprecated because it is no longer maintained. |
| 6.3.3 | 3,705 | 10/1/2022 | 6.3.3 is deprecated because it is no longer maintained. |
| 6.3.2 | 1,679 | 9/21/2022 | 6.3.2 is deprecated because it is no longer maintained. |
Release notes at https://github.com/jamescourtney/FlatSharp/releases