Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
9b8c91c9
Commit
9b8c91c9
authored
Mar 26, 2016
by
Mikkel Fahnøe Jørgensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add C support in README, minor updates in other C doc
parent
47d4b469
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
CUsage.md
docs/source/CUsage.md
+7
-4
Tutorial.md
docs/source/Tutorial.md
+1
-1
readme.md
readme.md
+1
-0
No files found.
docs/source/CUsage.md
View file @
9b8c91c9
...
@@ -15,8 +15,8 @@ project.
...
@@ -15,8 +15,8 @@ project.
-
[
Tutorial
](
@ref
flatbuffers_guide_tutorial) - select C as language
-
[
Tutorial
](
@ref
flatbuffers_guide_tutorial) - select C as language
when scrolling down
when scrolling down
-
General Use in C (
the
README)
<https://github.com/dvidelabs/flatcc/blob/master/README.md>
-
General Use in C (README)
<https://github.com/dvidelabs/flatcc/blob/master/README.md>
-
The C Builder Interface
, advanced
<https://github.com/dvidelabs/flatcc/blob/master/doc/builder.md>
-
The C Builder Interface
(advanced)
<https://github.com/dvidelabs/flatcc/blob/master/doc/builder.md>
## Basic Reflection
## Basic Reflection
...
@@ -25,7 +25,7 @@ The C-API does support reading binary schema (.bfbs)
...
@@ -25,7 +25,7 @@ The C-API does support reading binary schema (.bfbs)
files via code generated from the
`reflection.fbs`
schema, and an
files via code generated from the
`reflection.fbs`
schema, and an
[
example usage
](
https://github.com/dvidelabs/flatcc/tree/master/samples/reflection
)
[
example usage
](
https://github.com/dvidelabs/flatcc/tree/master/samples/reflection
)
shows how to use this. The schema files are pre-generated
shows how to use this. The schema files are pre-generated
in the
[
runtime distribution
](
https://github.com/dvidelabs/flatcc/tree/master/include/flatcc/reflection
)
.
Extended reflection
in the
[
runtime distribution
](
https://github.com/dvidelabs/flatcc/tree/master/include/flatcc/reflection
)
.
## Mutating Reflection
## Mutating Reflection
...
@@ -37,9 +37,12 @@ buffers using complex objects from existing buffers as source. This can
...
@@ -37,9 +37,12 @@ buffers using complex objects from existing buffers as source. This can
be very efficient due to direct copy semantics without endian conversion or
be very efficient due to direct copy semantics without endian conversion or
temporary stack allocation.
temporary stack allocation.
Scalars, structs and strings can be used as source, as well vectors of
these.
It is currently not possible to use an existing table or vector of table
It is currently not possible to use an existing table or vector of table
as source, but it would be possible to add support for this at some
as source, but it would be possible to add support for this at some
point.
point.
Vectors of strings
## Why not integrate with the `flatc` tool?
## Why not integrate with the `flatc` tool?
...
...
docs/source/Tutorial.md
View file @
9b8c91c9
...
@@ -1293,7 +1293,7 @@ like so:
...
@@ -1293,7 +1293,7 @@ like so:
// The returned buffer must be deallocated using
`free`
.
// The returned buffer must be deallocated using
`free`
.
// NOTE: Finalizing the buffer does NOT change the builder, it
// NOTE: Finalizing the buffer does NOT change the builder, it
// just creates a snapshot of the builder content.
// just creates a snapshot of the builder content.
buf = flatcc_builder_finalize_buffer(
&builder
,
&size);
buf = flatcc_builder_finalize_buffer(
B
,
&size);
// use buf
// use buf
free(buf);
free(buf);
...
...
readme.md
View file @
9b8c91c9
...
@@ -15,6 +15,7 @@ unpacking/parsing it first, while still having great forwards/backwards compatib
...
@@ -15,6 +15,7 @@ unpacking/parsing it first, while still having great forwards/backwards compatib
## Supported programming languages
## Supported programming languages
*
C++
*
C++
*
C#
*
C#
*
C
*
Go
*
Go
*
Java
*
Java
*
JavaScript
*
JavaScript
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment