• Stars
    star
    569
  • Rank 75,995 (Top 2 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 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
206
star
2

Entitas-ReactiveUI

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

EntitasKit

Entitas Swift implementation
Swift
57
star
4

mojo-csv

Mojo
51
star
5

FlexBuffersUnity

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

FlexBuffers-CSharp

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

FlexBuffersSwift

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

compact-dict

A fast and compact Dict implementation in Mojo 🔥
Mojo
21
star
9

Entitas-Swift

Entity System Lib implemented in Swift
Swift
19
star
10

mojo-hash

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

mojo-flx

FlexBuffers implementation in Mojo
Mojo
19
star
12

FlatBuffersSchemaEditor

XText based schema editor for FlatBuffers
Java
18
star
13

mojo-sort

Mojo
17
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

EPacMan

ShowCase for ObjC Entitas
Objective-C
2
star
27

MockitoViz

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

Hello_IT_Swift

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

MultiMeet

Working on it!
Objective-C
2
star
30

FriendsPlaygroundFB

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

rusty_beads

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

petrinet_dsl

Xtext DSL for petri net definition
Java
2
star
33

AbehtPlayground

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

FlatBuffersFeatureMatrix

1
star
35

IndexedData

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

priority-queue

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

DataArchive

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

FlatBuffersSwiftPerformanceTest

Performance tests for FlatBuffersSwift
Swift
1
star
39

RunningLights

1
star
40

NEO4OC-Specs

Specification for NEO4OC static library
Objective-C
1
star
41

mojo-prefix-sum

Mojo
1
star
42

mojo-unicode

Mojo
1
star