mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-05 07:27: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,11 +2,11 @@ import XCTest
|
||||
@testable import FlatBuffers
|
||||
|
||||
final class FlatBuffersTests: XCTestCase {
|
||||
|
||||
|
||||
let country = "Norway"
|
||||
|
||||
func testEndian() { XCTAssertEqual(isLitteEndian, true) }
|
||||
|
||||
|
||||
func testOffset() {
|
||||
let o = Offset<Int>()
|
||||
let b = Offset<Int>(offset: 1)
|
||||
@@ -70,7 +70,7 @@ final class FlatBuffersTests: XCTestCase {
|
||||
|
||||
class Country {
|
||||
|
||||
static let offsets: (name: VOffset, lan: VOffset, lng: VOffset) = (0, 1, 2)
|
||||
static let offsets: (name: VOffset, lan: VOffset, lng: VOffset) = (4, 6, 8)
|
||||
private var __t: Table
|
||||
|
||||
private init(_ t: Table) {
|
||||
|
||||
Reference in New Issue
Block a user