mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 06:12:19 +00:00
[swift] Moves code to use VTablesStorage (#5888)
* Moves the code to use _vtablestorage Rebuilt the test to confirm to the new API Adds documentation + generates code for grpc Reverts indentation v0.4.0 Updated swift/readme.md Updates VtableStorage to ensure space instead of reallocating each time Fixes str count not being correct * Fixes issue with boolean constant not being set + removes unused function
This commit is contained in:
@@ -52,10 +52,10 @@ func createDocument(Benchmarks: [Benchmark]) -> String {
|
||||
for _ in 0..<500_000 {
|
||||
let off = fb.create(string: "T")
|
||||
let s = fb.startTable(with: 4)
|
||||
fb.add(element: 3.2, def: 0, at: 0)
|
||||
fb.add(element: 4.2, def: 0, at: 1)
|
||||
fb.add(element: 5.2, def: 0, at: 2)
|
||||
fb.add(offset: off, at: 3)
|
||||
fb.add(element: 3.2, def: 0, at: 2)
|
||||
fb.add(element: 4.2, def: 0, at: 4)
|
||||
fb.add(element: 5.2, def: 0, at: 6)
|
||||
fb.add(offset: off, at: 8)
|
||||
_ = fb.endTable(at: s)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user