flatbuffers in windows/linux pure c programming used as shared memory
181 views
Skip to first unread message
Y. Zh
unread,
Jan 3, 2022, 5:52:12 PM1/3/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FlatBuffers
Hi, just new to flatbuffers.
Just want to clarify that flatbuffers can be shared by different running processes as shared memory in Linux?
In Linux, we can use shmget/shmat for shared memory among the processes.
Seems to me that the flatbuffers just like data on the wire for communication btw different pcs.
Please advise. Thank you.
mikkelfj
unread,
Jan 4, 2022, 2:28:42 PM1/4/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FlatBuffers
Yes, I use that extensively. Not between processes but to load data from disk, but it is the same mechanism.
The key points are write once, read many, and relative addressing within the format.
Mikkel
Austin Schuh
unread,
Jan 4, 2022, 3:55:49 PM1/4/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mikkelfj, FlatBuffers
We do it in C++ with shared memory extensively, but it should work in
C just as well. shmget should work.
(I really need to write some better README's, but
https://github.com/frc971/971-Robot-Code is a pub-sub framework for
hard realtime systems on Linux which uses flatbuffers and shared
memory)