• Home
  • Raw
  • Download

Lines Matching +full:swift +full:- +full:build +full:- +full:run

1 Use in Swift {#flatbuffers_guide_use_swift}
6 Before diving into the FlatBuffers usage in Swift, it should be noted that
8 to general FlatBuffers usage in all of the supported languages (including Swift).
10 Swift.
13 documentation to build `flatc` and should be familiar with
17 ## FlatBuffers Swift library code location
19 The code for the FlatBuffers Swift library can be found at
20 `flatbuffers/swift`. You can browse the library code on the [FlatBuffers
21 GitHub page](https://github.com/google/flatbuffers/tree/master/swift).
23 ## Testing the FlatBuffers Swift library
25 The code to test the Swift library can be found at `flatbuffers/Flatbuffers.Test.Swift`.
26 …f is located in [Flatbuffers.Test.Swift](https://github.com/google/flatbuffers/blob/master/tests/F…
28 To run the tests, use the [SwiftTest.sh](https://github.com/google/flatbuffers/blob/master/tests/Fl…
30 *Note: The shell script requires [Swift](https://swift.org) to
33 ## Using the FlatBuffers Swift library
35 *Note: See [Tutorial](@ref flatbuffers_guide_tutorial) for a more in-depth
36 example of how to use FlatBuffers in Swift.*
38 FlatBuffers supports reading and writing binary FlatBuffers in Swift.
40 To use FlatBuffers in your own code, first generate Swift structs from your
41 schema with the `--swift` option to `flatc`. Then include FlatBuffers using `SPM` in
42 by adding the path to `FlatBuffers/swift` into it. The generated code should also be
46 For example, here is how you would read a FlatBuffer binary file in Swift: First,
50 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.swift}
65 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.swift}
73 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.swift}