![]() |
VOOZH | about |
dotnet add package FlatSharp.Runtime --version 7.9.0
NuGet\Install-Package FlatSharp.Runtime -Version 7.9.0
<PackageReference Include="FlatSharp.Runtime" Version="7.9.0" />
<PackageVersion Include="FlatSharp.Runtime" Version="7.9.0" />Directory.Packages.props
<PackageReference Include="FlatSharp.Runtime" />Project file
paket add FlatSharp.Runtime --version 7.9.0
#r "nuget: FlatSharp.Runtime, 7.9.0"
#:package FlatSharp.Runtime@7.9.0
#addin nuget:?package=FlatSharp.Runtime&version=7.9.0Install as a Cake Addin
#tool nuget:?package=FlatSharp.Runtime&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 😃
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on FlatSharp.Runtime:
| Package | Downloads |
|---|---|
|
FlatSharp
FlatSharp is an idiomatic C# implementation of the FlatBuffer serialization format. Use attributes to declare your data contracts! |
|
|
FlatSharp.Unsafe
Performance-optimized unsafe extensions to the FlatSharp package. |
|
|
LeagueToolkit
Library for Parsing and Editing file formats from League of Legends |
|
|
OpenShock.Serialization.Flatbuffers
Contains flatbuffers source files with flatbuffers compiler setup to generate useable flatbuffer bindings |
|
|
UnityMathematics.Schemas
FlatBuffer schemas for Unity.Mathematics types |
Showing the top 6 popular GitHub repositories that depend on FlatSharp.Runtime:
| Repository | Stars |
|---|---|
|
kwsch/pkNX
Pokémon (Nintendo Switch) ROM Editor & Randomizer
|
|
|
Manu098vm/Tera-Finder
PKHeX.Core based program that allows users to view, edit, and calculate Raids and Mass Outbreaks for Pokémon Scarlet & Violet. It is the spiritual successor to SVXoroCalc.
|
|
|
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 | 22,915 | 5/26/2025 | |
| 7.8.0 | 24,282 | 11/14/2024 | |
| 7.7.0 | 65,019 | 5/31/2024 | |
| 7.6.0 | 167,479 | 3/14/2024 | |
| 7.5.1 | 1,578 | 2/25/2024 | |
| 7.5.0 | 452 | 2/23/2024 | |
| 7.4.0 | 50,347 | 12/2/2023 | |
| 7.3.0 | 12,853 | 9/12/2023 | |
| 7.2.3 | 15,976 | 8/11/2023 | |
| 7.2.1 | 979 | 8/4/2023 | |
| 7.2.0 | 395 | 8/3/2023 | |
| 7.1.1 | 11,052 | 3/17/2023 | |
| 7.1.0 | 4,813 | 1/31/2023 | |
| 7.0.2 | 19,342 | 11/25/2022 | |
| 7.0.1 | 1,541 | 11/18/2022 | |
| 7.0.0 | 768 | 11/17/2022 | |
| 6.3.5 | 12,069 | 11/4/2022 | 6.3.5 is deprecated because it is no longer maintained. |
| 6.3.3 | 5,616 | 10/1/2022 | 6.3.3 is deprecated because it is no longer maintained. |
| 6.3.2 | 1,791 | 9/21/2022 | 6.3.2 is deprecated because it is no longer maintained. |
Release notes at https://github.com/jamescourtney/FlatSharp/releases