Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming flatbuffers in java #8240

Closed
adparts opened this issue Feb 22, 2024 · 1 comment
Closed

Streaming flatbuffers in java #8240

adparts opened this issue Feb 22, 2024 · 1 comment

Comments

@adparts
Copy link

adparts commented Feb 22, 2024

Using java flatbuffers library to parse messages via an InputStream, a read buffer[] can contain one or more flatbuffer messages,

Is there any way to read two independent flatbuffer objects received from a stream of bytes using java? I don't know how to calculate the offset for the subsequent ones...

Thank you

@adparts
Copy link
Author

adparts commented Feb 23, 2024

Solved prepending a 2 byte sequence with the flatbuffer message length in each buffer.

@adparts adparts closed this as completed Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant