396 questions
2
votes
1
answer
67
views
Why does memory usage never decrease after large FlatBuffers serialization in Swift (v25.2.10)?
I'm using FlatBuffers in Swift (version 25.2.10) to serialize a large array of objects (1,000,000 items). After serialization, the app's memory usage jumps to about 387 MB and never goes down, even ...
2
votes
2
answers
81
views
Can I avoid deserializing subtables when modifying a trailing element of a top-level flatbuffer?
If I am going to modify a flatbuffer, the recommended way is to deserialize the contents and then re-serialize the contents. Fine. But I am hoping there is some way to avoid going all the way to the ...
2
votes
0
answers
59
views
Flatbuffers VectorIterator::operator- undefined behavior
I was digging into code of flatbuffers and it does seem to me that there is undefined behavior in the core library. But I just can't believe it is there (and it seems to work in some usecases)...
I'd ...
3
votes
1
answer
110
views
Serialize a vector of tables without creating a temporary vector of offsets
Using flatbuffers v2.0.8, I'm trying to serialize a vector of tables without creating a temporary std::vector of offsets.
This would be especially useful when:
Trying to re-serialize a flatbuffer ...
0
votes
0
answers
45
views
How to delete flatbuffers received from ZeroMQ
I'm looking for an example in C++ 11 to delete flatbuffers received by ZeroMQ.
I have two applications: Publisher and Subscriber.
I know that on the Publisher (sender) side, that the ...
0
votes
1
answer
65
views
Is there way to send only first parts of flatbuffer?
I have a flatbuffer defined as following:
struct Config {
...
}
table Commands {
...
}
table Request {
config : Config
command : [Commands]
data : [ubyte]
}
After I receive Request and ...
-1
votes
1
answer
69
views
Can I call CreateString inline when creating a table?
Assuming following table in flatbuffers:
table Person {
id:int32
name:string;
age:int16;
location:string;
}
Then in c++ code, are both of these approaches correct?
//Calling CreateString ...
0
votes
1
answer
78
views
Unable to install Google.FlatBuffers Nuget package for the UWP application
I got the below error while installing FlatBuffers package for the UWP app
NU1202: Package Google.FlatBuffers 24.3.25 is not compatible with uap10.0.17763 (UAP,Version=v10.0.17763) / win10-x86. ...
0
votes
1
answer
167
views
Generic Types In Flat Buffer
I am having some trouble converting my games network communication from sending json to using flat buffers.
How my games client / server communication works:
We have a base class called GameMessage
[...
0
votes
2
answers
112
views
Add gaps in flatbuffers vector
Is it possible to have a gap or empty element in a flatbuffers vector?
I need to transfer a (variable length) list of items, where the position of the items is of relevance. However, items can be ...
0
votes
1
answer
5k
views
"Program 'xxx' was overridden with the compiled executable 'xxx' and therefore cannot be used during configuration" error
Using Meson build system, I tried to run flatc program which is got from find_program('flatc'). But Meson complains as "ERROR: Program 'flatc' was overridden with the compiled executable 'flatc' ...
2
votes
0
answers
124
views
Serialize 4 png Images into a Flatbuffer Array
I have 4 png files that I want to serialize into a flatbuffer. I want to append each serialized png into an array and then send it to a host somewhere. The filenames and variable names are arbitrary. ...
0
votes
0
answers
166
views
How to avoid copying the bytes in Dart when deserializing an image from a Flatbuffer?
Summary:
When deserializing a simple flatbuffer containing an image (stored as [ubyte]), the generated Dart code returns a List<int> that is not a Uint8List. Therefore can't be cast to Uint8List,...
1
vote
1
answer
60
views
should I call finish on member tables
So I have table as member of other tables, when I create data of the parent tables, do I need to call finish only on the parent table, or I need to finish both the member and the parent tables? The ...
0
votes
0
answers
85
views
use different namespace based on language
The flatbuffer schema file has namespace directive, which defines the namespace in the generated code. But the problem is that the style of namespace is language dependent, for example, in msg.fbs:
...