Updates swift generated monster sample file (#6616)

Updates swift generated monster sample file
Adds frozen attribute
This commit is contained in:
mustiikhalil
2021-05-06 07:55:03 +03:00
committed by GitHub
parent a4bb8f0c2e
commit 8a582883ac
5 changed files with 28 additions and 22 deletions

View File

@@ -16,6 +16,7 @@
import Foundation
@frozen
public struct Table {
public private(set) var bb: ByteBuffer
public private(set) var postion: Int32
@@ -113,9 +114,6 @@ public struct Table {
o += postion
return o + bb.read(def: Int32.self, position: Int(o)) + 4
}
}
extension Table {
static public func indirect(_ o: Int32, _ fbb: ByteBuffer) -> Int32 { o + fbb.read(
def: Int32.self,