Lines Matching +full:json +full:- +full:buffer
1 Use in C# {#flatbuffers_guide_use_c-sharp}
29 You can build for a specific framework target when using the cross-platform
30 [.NET Core SDK](https://dotnet.microsoft.com/download) by adding the `-f`
34 dotnet build -f netstandard2.1 "FlatBuffers.csproj"
39 below) using the `-p` command line option:
42 …dotnet build -f netstandard2.1 -p:ENABLE_SPAN_T=true -p:UNSAFE_BYTEBUFFER=true "FlatBuffers.csproj"
54 Optionally, you can run this using [Mono](http://www.mono-project.com/) instead.
65 *Note: See [Tutorial](@ref flatbuffers_guide_tutorial) for a more in-depth
71 schema with the `--csharp` option to `flatc`.
101 The performance-enhancing methods to which you can pass an already created
121 - Designate one of the fields in a table as the "key" field. You do this
125 - Write out tables of this type as usual, collect their offsets in an
127 - Instead of calling standard generated method,
132 - Now when you're accessing the FlatBuffer, you can use
142 ## Buffer verification
144 As mentioned in [C++ Usage](@ref flatbuffers_guide_use_cpp) buffer
145 accessor functions do not verify buffer offsets at run-time.
146 If it is necessary, you can optionally use a buffer verifier before you
148 fields, and null termination of strings to ensure that when a buffer
149 is accessed, all reads will end up inside the buffer.
156 if `ok` is true, the buffer is safe to read.
170 if `ok` is true, the buffer is safe to read.
172 A second parameter of `verifyBuffer` specifies whether buffer content is
173 size prefixed or not. In the example above, the buffer is assumed to not include
177 * SetMaxDepth - limit the nesting depth. Default: 1000000
178 * SetMaxTables - total amount of tables the verifier may encounter. Default: 64
179 * SetAlignmentCheck - check content alignment. Default: True
180 * SetStringCheck - check if strings contain termination '0' character. Default: true
185 There currently is no support for parsing text (Schema's and JSON) directly
194 (requiring pre-order construction of all data, and making mutation harder).
197 can be used (through `--gen-object-api`) that is able to unpack & pack a
204 // Deserialize from buffer into object.
216 ### Json Serialization
219 serialize & deserialize a JSON text.
220 To use Json Serialization, add `--cs-gen-json-serializer` option to `flatc` and
221 add `Newtonsoft.Json` nuget package to csproj. This requires explicitly setting
222 the `--gen-object-api` option as well.
225 // Deserialize MonsterT from json
226 string jsonText = File.ReadAllText(@"Resources/monsterdata_test.json");
229 // Serialize MonsterT to json
236 * [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json)