• Stars
    star
    570
  • Rank 78,245 (Top 2 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This project brings FlatBuffers (an efficient cross platform serialization library) to Swift.

FlatBuffersSwift

Join the chat at https://gitter.im/mzaks/FlatBuffersSwift Build Status

Motivation

This project brings FlatBuffers (an efficient cross platform serialization library) to Swift.

One minute introduction

There are three simple steps for you to use FlatBuffersSwift

1. Write a schema file

table List {
  people : [Person];
}

table Person {
  firstName : string;
  lastName : string;
}

root_type List;

2. Generate Swift code

fbsCG console application can be found here: https://github.com/mzaks/FlatBuffersSwiftCodeGen To generate, please execute it as following: fbsCG contacts.fbs contacts.swift

3. Use the generated API

Create objects and encode them

let p1 = Person(firstName: "Maxim", lastName: "Zaks")
let p2 = Person(firstName: "Alex", lastName: "Zaks")
let list = List(people: [p1, p2])
let data = try?list.makeData()

Decode data very efficiently

let newList = List.from(data: data)
let name = newList?.people[0].firstName

Please check out Wiki for more information.

More Repositories

1

EntitasCookBook

CookBook describing ECS / Entitas framework
208
star
2

Entitas-ReactiveUI

Showcase for ReactiveUI build with Entitas-CSharp
C#
64
star
3

EntitasKit

Entitas Swift implementation
Swift
57
star
4

mojo-csv

Mojo
50
star
5

FlexBuffersUnity

Unity package bringing FlexBuffers support to your Unity3D projects
C#
41
star
6

FlexBuffers-CSharp

FlexBuffers is JSON comparable binary format with random value access capabilities
C#
35
star
7

compact-dict

A fast and compact Dict implementation in Mojo 🔥
Mojo
32
star
8

FlexBuffersSwift

Swift implementation of FlexBuffers - a sub project of FlatBuffers
Swift
24
star
9

mojo-flx

FlexBuffers implementation in Mojo
Mojo
22
star
10

Entitas-Swift

Entity System Lib implemented in Swift
Swift
19
star
11

mojo-sort

Mojo
19
star
12

mojo-hash

A collection of hash functions implemented in Mojo
C++
19
star
13

FlatBuffersSchemaEditor

XText based schema editor for FlatBuffers
Java
18
star
14

ECS-Lang

Entity Component System Language
Java
16
star
15

entitas_ff

Entitas for Flutter
Dart
13
star
16

mojo-trees

Experimental Tree data structures in Mojo
13
star
17

FlatBuffersSwiftCodeGen

Code generator for FlatBuffersSwift
Swift
11
star
18

Entitas-Lang

Domain Scpecific Language for Entitas and other Entity Component System frameworks
Java
10
star
19

FindCityFB

ShowCase for FlatBuffersSwift & ByteCabinet
Swift
9
star
20

mojo-fast-base64

Mojo
9
star
21

swift-future

Basic Future implementation in Swift
Swift
6
star
22

Rounds

EntitasKit Tutorial App
Swift
4
star
23

NEO4OC

ObjC Neo4j connector
Objective-C
4
star
24

eytzinger_sort

Evaluation of eytzinger sorting algorithms
Rust
3
star
25

Entitas-ReactiveUI-Swift

Entitas Swift UI example
Swift
3
star
26

mojo-prefix-sum

Mojo
3
star
27

EPacMan

ShowCase for ObjC Entitas
Objective-C
2
star
28

flatbuffers-mojo

Flatbuffers lib in Mojo
Mojo
2
star
29

MockitoViz

An Eclipse Plugin that should visualize mocked objects
Java
2
star
30

Hello_IT_Swift

Example for Asynchronous Behaviour Tree implementation in Swift
Swift
2
star
31

MultiMeet

Working on it!
Objective-C
2
star
32

FriendsPlaygroundFB

ShowCase for recursive object graph serialised with FlatBuffersSwift
Swift
2
star
33

rusty_beads

Implementation of Beads data serialisation format in Rust
Rust
2
star
34

petrinet_dsl

Xtext DSL for petri net definition
Java
2
star
35

AbehtPlayground

Swift Playground showing how one can build an asynchronous behaviour tree.
Swift
1
star
36

FlatBuffersFeatureMatrix

1
star
37

IndexedData

A simple way to pack data together in a very efficient way
Swift
1
star
38

priority-queue

A priority queue (implemented as a binary heap) written in Objective-C
Objective-C
1
star
39

DataArchive

Simple Key/Value store for iOS developers
Swift
1
star
40

FlatBuffersSwiftPerformanceTest

Performance tests for FlatBuffersSwift
Swift
1
star
41

RunningLights

1
star
42

NEO4OC-Specs

Specification for NEO4OC static library
Objective-C
1
star
43

mojo-unicode

Mojo
1
star