forked from BigfootDev/flatbuffers
Adds bool support in structs + updates grpc support + CI upgrades (#5943)
This commit is contained in:
@@ -52,6 +52,14 @@ extension Float32: Scalar {
|
||||
}
|
||||
}
|
||||
|
||||
extension Bool: Scalar {
|
||||
public var convertedEndian: UInt8 {
|
||||
return self == true ? 1 : 0
|
||||
}
|
||||
|
||||
public typealias NumericValue = UInt8
|
||||
}
|
||||
|
||||
extension Int: Scalar {
|
||||
public typealias NumericValue = Int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user