mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 10:42:00 +00:00
Updates swift docs for package management (#5883)
Small fix for the clear function
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
FlatBuffers swift can be found in both SPM
|
FlatBuffers swift can be found in both SPM
|
||||||
|
|
||||||
`.package(url: "https://github.com/mustiikhalil/flatbuffers.git", .branch("swift"))`
|
`.package(url: "https://github.com/mustiikhalil/flatbuffers.git", from: "X.Y.Z"),`
|
||||||
|
|
||||||
|
tags are provided in the repository, so you can select according to the version you want.
|
||||||
|
|
||||||
and Cocoapods
|
and Cocoapods
|
||||||
|
|
||||||
|
|||||||
@@ -75,8 +75,10 @@ public struct FlatBufferBuilder {
|
|||||||
mutating public func clear() {
|
mutating public func clear() {
|
||||||
_minAlignment = 0
|
_minAlignment = 0
|
||||||
isNested = false
|
isNested = false
|
||||||
_bb.clear()
|
|
||||||
stringOffsetMap = [:]
|
stringOffsetMap = [:]
|
||||||
|
_vtable = []
|
||||||
|
_vtables = []
|
||||||
|
_bb.clear()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Removes all the offsets from the VTable
|
/// Removes all the offsets from the VTable
|
||||||
|
|||||||
Reference in New Issue
Block a user