mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-05 04:17:05 +00:00
[Swift] Adds GRPC to Swift (#5758)
* Adds the basic structure for required to add grpc support Added the message implementation Updated the code to confirm to the protocol flatbuffersobject Adds an example for Swift flatbuffers GRPC Started implementing the swift GRPC code Gen Generator generates protocols now Fixing ci issues Migrated the logic to use grpc_generator::File instead of string Refactored swift project Implemented GRPC in swift Finished implementing GRPC in swift Fixes issues Adds contiguousBytes initializer to swift Adds documentation + fixes buffer nameing in tables + structs Adds documentation + fixes buffer nameing in tables + structs Updated tests * Updated version
This commit is contained in:
@@ -22,6 +22,7 @@ public enum Character: UInt8, Enum {
|
||||
public struct Rapunzel: Readable {
|
||||
|
||||
static func validateVersion() { FlatBuffersVersion_1_11_1() }
|
||||
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||
|
||||
private var _accessor: Struct
|
||||
public static var size = 4
|
||||
@@ -35,6 +36,7 @@ public struct Rapunzel: Readable {
|
||||
public struct BookReader: Readable {
|
||||
|
||||
static func validateVersion() { FlatBuffersVersion_1_11_1() }
|
||||
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||
|
||||
private var _accessor: Struct
|
||||
public static var size = 4
|
||||
@@ -62,6 +64,7 @@ public func createBookReader(booksRead: Int32) -> UnsafeMutableRawPointer {
|
||||
public struct Attacker: FlatBufferObject {
|
||||
|
||||
static func validateVersion() { FlatBuffersVersion_1_11_1() }
|
||||
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||
|
||||
private var _accessor: Table
|
||||
public static func finish(_ fbb: FlatBufferBuilder, end: Offset<UOffset>, prefix: Bool = false) { fbb.finish(offset: end, fileId: "MOVI", addPrefix: prefix) }
|
||||
@@ -86,6 +89,7 @@ public struct Attacker: FlatBufferObject {
|
||||
public struct Movie: FlatBufferObject {
|
||||
|
||||
static func validateVersion() { FlatBuffersVersion_1_11_1() }
|
||||
public var __buffer: ByteBuffer! { return _accessor.bb }
|
||||
|
||||
private var _accessor: Table
|
||||
public static func finish(_ fbb: FlatBufferBuilder, end: Offset<UOffset>, prefix: Bool = false) { fbb.finish(offset: end, fileId: "MOVI", addPrefix: prefix) }
|
||||
|
||||
Reference in New Issue
Block a user