mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-05 06:47:03 +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:
@@ -2,9 +2,9 @@ import XCTest
|
||||
@testable import FlatBuffers
|
||||
|
||||
final class FlatBuffersDoubleTests: XCTestCase {
|
||||
|
||||
|
||||
let country = "Norway"
|
||||
|
||||
|
||||
func testCreateCountry() {
|
||||
var b = FlatBufferBuilder(initialSize: 16)
|
||||
_ = CountryDouble.createCountry(builder: &b, name: country, log: 200, lan: 100)
|
||||
@@ -31,7 +31,7 @@ final class FlatBuffersDoubleTests: XCTestCase {
|
||||
|
||||
class CountryDouble {
|
||||
|
||||
static let offsets: (name: VOffset, lan: VOffset, lng: VOffset) = (4,6,8)
|
||||
static let offsets: (name: VOffset, lan: VOffset, lng: VOffset) = (4, 6, 8)
|
||||
|
||||
private var table: Table
|
||||
|
||||
|
||||
Reference in New Issue
Block a user