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

Question: Can I use Kaitai in opposite direction? (manually fill structure with data->create stream from structure->write raw data f.e. to file) #1003

Closed
iboofkratom opened this issue Dec 22, 2022 · 3 comments

Comments

@iboofkratom
Copy link

Hi,
I have a question. I know Kaitai can be used to parse raw data into data structures. And I really like it for this purpose.
But can Kaitai also be used for the opposite process?
For example - what if I wanted to use it for creating communication protocols (custom packets):
On one side I want to recieve a packet and parse it. I know Kaitai can do this.
But on the other side, I would like to fill my custom data structure with data and than create raw data stream from it, which could be sent to the first device.
Is this possible with Kaitai? Sorry for noob question.
Thanks!!

@generalmimon
Copy link
Member

Duplicate of #27

@generalmimon generalmimon marked this as a duplicate of #27 Dec 22, 2022
@generalmimon generalmimon closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2022
@generalmimon
Copy link
Member

But on the other side, I would like to fill my custom data structure with data and than create raw data stream from it, which could be sent to the first device.
Is this possible with Kaitai? Sorry for noob question.

Not yet, see https://doc.kaitai.io/faq.html#writing.

@iboofkratom
Copy link
Author

Okay, thanks for response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants