2014-01-28 00:52:49 +00:00
|
|
|
*_wire.txt
|
|
|
|
*_wire.bin
|
|
|
|
.DS_Store
|
[Swift] Swift implementation 🎉🎉 (#5603)
* Implemented the swift version of Flatbuffers
Implemented serailzing, reading, and mutating data from object monster
Fixes mis-aligned pointer issue
Fixes issue when shared strings are removed from table
Adds swift enum, structs code gen
Fixed namespace issues + started implementing the table gen
Added Mutate function to the code generator
Generated linux test cases
Fixed an issue with bools, and structs readers in table writer
Swift docker image added
Updated the test cases, and removed a method parameters in swift
Fixed createVector api when called with scalars
Fixed issues with scalar arrays, and fixed the code gen namespaces, added sample_binary.swift
Cleaned up project
Added enum vectors, and their readers
Refactored code
Added swift into the support document
Added documentation in docs, and fixed a small issue with Data() not being returned correctly
Fixes Lowercase issue, and prevents generating lookups for deprecated keys
* Made all the required funcs to have const + removed unneeded code + fix lowercase func
* Removed transform from lowercased and moved it to function
* Fixes an issue with iOS allocation from read
* Refactored cpp code to be more readable
* casts position into int for position
* Fix enums issue, moves scalar writer code to use memcpy
* Removed c_str from struct function
* Fixed script to generate new objects when ran on travis ci: fix
* Handles deallocating space allocated for structs
* Updated the test cases to adhere to the fileprivate lookup, no mutation for unions, and updated the names of the vector functions
2020-01-09 20:12:10 +00:00
|
|
|
**/.build
|
2021-02-11 18:16:57 +00:00
|
|
|
build
|
[Swift] Swift implementation 🎉🎉 (#5603)
* Implemented the swift version of Flatbuffers
Implemented serailzing, reading, and mutating data from object monster
Fixes mis-aligned pointer issue
Fixes issue when shared strings are removed from table
Adds swift enum, structs code gen
Fixed namespace issues + started implementing the table gen
Added Mutate function to the code generator
Generated linux test cases
Fixed an issue with bools, and structs readers in table writer
Swift docker image added
Updated the test cases, and removed a method parameters in swift
Fixed createVector api when called with scalars
Fixed issues with scalar arrays, and fixed the code gen namespaces, added sample_binary.swift
Cleaned up project
Added enum vectors, and their readers
Refactored code
Added swift into the support document
Added documentation in docs, and fixed a small issue with Data() not being returned correctly
Fixes Lowercase issue, and prevents generating lookups for deprecated keys
* Made all the required funcs to have const + removed unneeded code + fix lowercase func
* Removed transform from lowercased and moved it to function
* Fixes an issue with iOS allocation from read
* Refactored cpp code to be more readable
* casts position into int for position
* Fix enums issue, moves scalar writer code to use memcpy
* Removed c_str from struct function
* Fixed script to generate new objects when ran on travis ci: fix
* Handles deallocating space allocated for structs
* Updated the test cases to adhere to the fileprivate lookup, no mutation for unions, and updated the names of the vector functions
2020-01-09 20:12:10 +00:00
|
|
|
**/Packages
|
|
|
|
/*.xcodeproj
|
|
|
|
**/xcuserdata/
|
|
|
|
**/xcshareddata/
|
|
|
|
**/.swiftpm/
|
2014-01-28 00:52:49 +00:00
|
|
|
*.o
|
|
|
|
*.o.d
|
|
|
|
*.class
|
|
|
|
*.a
|
2017-10-16 16:24:11 +00:00
|
|
|
*.swp
|
2014-01-28 00:52:49 +00:00
|
|
|
*~
|
|
|
|
*.vcxproj
|
|
|
|
*.vcxproj.filters
|
|
|
|
*.vcxproj.user
|
|
|
|
*.sln
|
|
|
|
*.suo
|
2018-07-05 22:55:57 +00:00
|
|
|
*.opendb
|
2014-01-28 00:52:49 +00:00
|
|
|
*.keystore
|
2018-07-05 22:55:57 +00:00
|
|
|
**/.vs/**
|
2014-01-28 00:52:49 +00:00
|
|
|
**/bin/**
|
2018-09-03 00:05:50 +00:00
|
|
|
!tests/rust_usage_test/bin/**
|
2014-01-28 00:52:49 +00:00
|
|
|
**/gen/**
|
|
|
|
**/libs/**
|
|
|
|
**/obj/**
|
|
|
|
**/*.dir/**
|
|
|
|
**/CMakeFiles/**
|
|
|
|
**/cmake_install.cmake
|
2015-05-06 00:10:53 +00:00
|
|
|
**/install_manifest.txt
|
2014-01-28 00:52:49 +00:00
|
|
|
**/CMakeCache.txt
|
2015-05-06 00:10:53 +00:00
|
|
|
**/CMakeTestfile.cmake
|
2019-04-05 19:35:40 +00:00
|
|
|
**/CPackConfig.cmake
|
|
|
|
**/CPackSourceConfig.cmake
|
|
|
|
**/compile_commands.json
|
2014-01-28 00:52:49 +00:00
|
|
|
**/Debug/**
|
|
|
|
**/Release/**
|
2018-07-05 22:55:57 +00:00
|
|
|
**/RelWithDebInfo/**
|
|
|
|
**/x64/ #build artifacts from VS
|
2014-01-28 00:52:49 +00:00
|
|
|
build.xml
|
|
|
|
local.properties
|
|
|
|
project.properties
|
|
|
|
proguard-project.txt
|
|
|
|
linklint_results
|
|
|
|
Makefile
|
2021-11-15 21:41:22 +00:00
|
|
|
flatbenchmark
|
|
|
|
flatbenchmark.exe
|
2014-01-28 00:52:49 +00:00
|
|
|
flatc
|
2015-08-01 16:07:10 +00:00
|
|
|
flatc.exe
|
2015-02-13 23:58:29 +00:00
|
|
|
flathash
|
2015-08-01 16:07:10 +00:00
|
|
|
flathash.exe
|
2014-01-28 00:52:49 +00:00
|
|
|
flattests
|
2015-08-01 16:07:10 +00:00
|
|
|
flattests.exe
|
2022-04-06 20:25:43 +00:00
|
|
|
flattests_cpp17
|
|
|
|
flattests_cpp17.exe
|
2014-01-28 00:52:49 +00:00
|
|
|
flatsamplebinary
|
2015-08-01 16:07:10 +00:00
|
|
|
flatsamplebinary.exe
|
2014-01-28 00:52:49 +00:00
|
|
|
flatsampletext
|
2015-08-01 16:07:10 +00:00
|
|
|
flatsampletext.exe
|
2018-12-13 19:59:27 +00:00
|
|
|
flatsamplebfbs
|
|
|
|
flatsamplebfbs.exe
|
2016-07-02 01:08:51 +00:00
|
|
|
grpctest
|
|
|
|
grpctest.exe
|
2014-01-28 00:52:49 +00:00
|
|
|
snapshot.sh
|
2017-10-16 16:24:11 +00:00
|
|
|
tags
|
Add [Dart] support (#4676)
* Add [Dart] support
* fix enum vectors
* Allow for opt out of string interning
* fix comment style, make interning opt in
* remove Offset<T>, prefer int
* avoid creating unnecessary vtable objects
* start work on tests - do not generate builder if struct has 0 fields - add int64
* support reading structs properly
* correctly handle reading vectors of structs, dartfmt
* support structs, fix unnecessary prepares
* fix bool customizations
* undo unintentional removal of file
* docs updates, complete tutorial, bug fix for codegen
* more documentation
* Update docs, add to doxygen file
* update package structure, add samples script/code
* rearrange sample
* Tests
* Add readme for pub
* cleanup package for pub
* update docs for renamed file
* remove custom matcher, use `closeTo` instead
* remove unintentional file
* remove unintended file checkin
* use auto, move method, cleanup
* refactor to ObjectBuilders, add Builders
* Update tests, examples
* Add files missing from previous commit
* documentation and example updates
* Update LICENSE, make dartanalyzer happy, fix minor bugs, get rid of duplicate files, publish script
* fix sample for slightly different schema
* Update pubspec.yaml
2018-05-18 18:06:15 +00:00
|
|
|
tests/dart_gen
|
2014-07-11 23:12:35 +00:00
|
|
|
tests/go_gen
|
2015-01-17 01:48:51 +00:00
|
|
|
tests/monsterdata_java_wire.mon
|
2018-03-12 18:30:46 +00:00
|
|
|
tests/monsterdata_java_wire_sp.mon
|
2015-03-13 20:05:28 +00:00
|
|
|
tests/monsterdata_go_wire.mon
|
2015-08-17 07:56:54 +00:00
|
|
|
tests/monsterdata_javascript_wire.mon
|
2018-07-24 02:03:11 +00:00
|
|
|
tests/monsterdata_lobster_wire.mon
|
2018-09-03 00:05:50 +00:00
|
|
|
tests/monsterdata_rust_wire.mon
|
2017-08-11 16:24:36 +00:00
|
|
|
tests/php/
|
2014-07-31 22:11:03 +00:00
|
|
|
CMakeLists.txt.user
|
2014-08-20 20:22:16 +00:00
|
|
|
CMakeScripts/**
|
2015-03-26 17:35:52 +00:00
|
|
|
CTestTestfile.cmake
|
2022-09-01 17:28:59 +00:00
|
|
|
flatbuffers-config-version.cmake
|
2015-05-21 23:33:29 +00:00
|
|
|
FlatBuffers.cbp
|
2014-08-20 20:22:16 +00:00
|
|
|
build/Xcode/FlatBuffers.xcodeproj/project.xcworkspace/**
|
|
|
|
build/Xcode/FlatBuffers.xcodeproj/xcuserdata/**
|
2015-03-26 17:35:52 +00:00
|
|
|
FlatBuffers.xcodeproj/
|
2015-01-10 22:48:44 +00:00
|
|
|
java/.idea
|
|
|
|
java/*.iml
|
2015-08-17 07:56:54 +00:00
|
|
|
.idea
|
2016-07-05 12:29:12 +00:00
|
|
|
*.iml
|
|
|
|
target
|
2022-09-12 00:46:46 +00:00
|
|
|
java/target
|
2016-07-05 12:29:12 +00:00
|
|
|
**/*.pyc
|
2016-01-18 20:54:22 +00:00
|
|
|
build/VS2010/FlatBuffers.sdf
|
|
|
|
build/VS2010/FlatBuffers.opensdf
|
|
|
|
build/VS2010/ipch/**/*.ipch
|
2016-09-06 17:12:04 +00:00
|
|
|
*.so
|
2016-11-07 18:27:26 +00:00
|
|
|
Testing/Temporary
|
2017-04-10 17:01:13 +00:00
|
|
|
.cproject
|
|
|
|
.settings/
|
|
|
|
.project
|
2017-03-29 18:55:20 +00:00
|
|
|
net/**/obj
|
2017-04-10 17:01:13 +00:00
|
|
|
node_modules/
|
2017-07-13 13:27:39 +00:00
|
|
|
android/.externalNativeBuild/
|
|
|
|
android/.gradle/
|
|
|
|
android/build/
|
|
|
|
samples/android/.externalNativeBuild/
|
|
|
|
samples/android/.gradle/
|
|
|
|
samples/android/build/
|
2021-09-23 23:22:49 +00:00
|
|
|
js/**/*.js
|
|
|
|
js/**/*.d.ts
|
|
|
|
mjs/**/*.js
|
|
|
|
mjs/**/*.d.ts
|
2018-02-05 18:23:15 +00:00
|
|
|
/bazel-bin
|
|
|
|
/bazel-flatbuffers
|
|
|
|
/bazel-genfiles
|
|
|
|
/bazel-out
|
2018-03-08 18:36:27 +00:00
|
|
|
/bazel-testlogs
|
|
|
|
.ninja_deps
|
|
|
|
.ninja_log
|
|
|
|
build.ninja
|
|
|
|
rules.ninja
|
2018-04-27 20:31:18 +00:00
|
|
|
.vscode
|
Add [Dart] support (#4676)
* Add [Dart] support
* fix enum vectors
* Allow for opt out of string interning
* fix comment style, make interning opt in
* remove Offset<T>, prefer int
* avoid creating unnecessary vtable objects
* start work on tests - do not generate builder if struct has 0 fields - add int64
* support reading structs properly
* correctly handle reading vectors of structs, dartfmt
* support structs, fix unnecessary prepares
* fix bool customizations
* undo unintentional removal of file
* docs updates, complete tutorial, bug fix for codegen
* more documentation
* Update docs, add to doxygen file
* update package structure, add samples script/code
* rearrange sample
* Tests
* Add readme for pub
* cleanup package for pub
* update docs for renamed file
* remove custom matcher, use `closeTo` instead
* remove unintentional file
* remove unintended file checkin
* use auto, move method, cleanup
* refactor to ObjectBuilders, add Builders
* Update tests, examples
* Add files missing from previous commit
* documentation and example updates
* Update LICENSE, make dartanalyzer happy, fix minor bugs, get rid of duplicate files, publish script
* fix sample for slightly different schema
* Update pubspec.yaml
2018-05-18 18:06:15 +00:00
|
|
|
dart/.pub/
|
|
|
|
dart/.packages
|
|
|
|
dart/pubspec.lock
|
|
|
|
dart/.dart_tool/
|
|
|
|
dart/build/
|
|
|
|
dart/doc/api/
|
2018-09-04 02:33:38 +00:00
|
|
|
Cargo.lock
|
2018-10-11 17:37:47 +00:00
|
|
|
.corpus**
|
|
|
|
.seed**
|
2020-11-23 18:17:44 +00:00
|
|
|
.crash**
|
2019-12-23 20:13:48 +00:00
|
|
|
grpc/google/
|
2020-03-02 18:15:23 +00:00
|
|
|
**/Package.resolved
|
|
|
|
.clangd/**
|
2020-06-04 16:08:41 +00:00
|
|
|
package-lock.json
|
2020-07-30 22:55:11 +00:00
|
|
|
/*.ilk
|
|
|
|
/*.pdb
|
|
|
|
.clwb
|
2020-10-26 04:42:29 +00:00
|
|
|
yarn-error.log
|
2020-10-28 05:51:58 +00:00
|
|
|
.cache/
|
2020-10-28 16:45:23 +00:00
|
|
|
/flatbuffers.lib
|
|
|
|
.cmake/
|
2021-02-19 09:47:59 +00:00
|
|
|
**/dist
|
|
|
|
**/vendor
|
|
|
|
**/go.sum
|
2021-03-11 19:11:04 +00:00
|
|
|
flatbuffers.pc
|
2021-05-14 17:59:28 +00:00
|
|
|
**/FlatBuffers.Test.Swift.xcodeproj
|
2021-08-30 23:36:00 +00:00
|
|
|
**/html/**
|
|
|
|
**/latex/**
|
2021-11-15 21:41:22 +00:00
|
|
|
# https://cmake.org/cmake/help/latest/module/FetchContent.html#variable:FETCHCONTENT_BASE_DIR
|
2022-11-11 04:47:28 +00:00
|
|
|
cmake-build-debug/
|
2022-11-13 20:00:07 +00:00
|
|
|
_deps/
|
Add Kotlin multiplatform support (#7969)
* [Kotlin] Introduction to Kotlin Multiplaform
The first implementation of the Kotlin code generation was made years
ago at the time Kotlin Multiplaform was not stable and Kotlin is mostly
used on JVM-based targets. For this reason the generated code uses java
based runtime.
That design decision comes with many drawbacks, leaving the code
generated more java-like and making it impossible to use more advanced
features of the Kotlin language.
In this change we are adding two parts: A pure, multi-plaform, Kotlin
runtime and a new code generator to accompany it.
* [Kotlin] Remove scalar sign cast from code generation
Now that we have a new runtime the accepts unsigned types, we don't
need to code generate casting back and from signed scalars. This
MR removes this from both code generations and adds the necessary
API to the runtime.
* [Kotlin] Use offset on public API to represent buffer position
Currently, kotlin was following Java's approach of representing objects,
vectors, tables as "Int" (the position of it in the buffer). This change
replaces naked Int with Offset<T>, offering a type-safe API. So,
instead of
fun Table.createTable(b: FlatBufferBuilder, subTable: Int)
We will have
fun Table.createTable(b: FlatBufferBuilder, subTable: Offset<SubTable>)
Making impossible to accidentally switch parameters.
The performance should be similar to use Int as we are using value
class for Offset and ArrayOffset, which most of the time translate to
Int in the bytecode.
* [Kotlin] Add builder for tables
Add builder constructor to make create of table more ergonomic.
For example the movie sample for the test set could be written as:
Movie.createMovie(fbb,
mainCharacterType = Character_.MuLan,
mainCharacter = att) {
charactersType = charsType
this.characters = characters
}
instead of:
Movie.startMovie(fbb)
Movie.addMainCharacterType(fbb, Character_.MuLan)
Movie.addMainCharacter(fbb, att as Offset<Any>)
Movie.addCharactersType(fbb, charsType)
Movie.addCharacters(fbb, charsVec)
Movie.endMovie(fbb)
* [Kotlin] Move enum types to value class
Moving to flatbuffer enums to value class adds type safety for parameters
with minimum to no performance impact.
* [Kotlin] Simplify Union parameters to avoid naked casting
Just a small change on the APIs that receive union as parameters,
creating a typealias UnionOffset to avoid using Offset<Any>. To "convert"
an table offset to an union, one just call Offset.toUnion().
* [Kotlin] Apply clang-format on kotlin code generators
* [Kotlin] Update kotlin generator to follow official naming conventions
Updating directory, package and enum naming to follow Kotlin official
convention.
https://kotlinlang.org/docs/coding-conventions.html#naming-rules
* [Kotlin] Add fixes to improve performance
1 - Add benchmark comparing serialization between Java & Kotlin
2 - ReadWriteBuffer does not auto-grow (thus avoid check size in every op)
3 - Add specialized add functions on FlatBufferBuilder to avoid boxing
offsets.
4 - Remove a few Kotlin syntax sugar that generated performance penalties.
* [Kotlin] Remove builder from Kotlin KMP and add some optimizations
to avoid boxing of Offset classes
---------
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-05-26 18:00:33 +00:00
|
|
|
**/.gradle/**
|
|
|
|
kotlin/**/generated
|