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

C# Serialization #1113

Open
adriansuciu09 opened this issue Jun 3, 2024 · 3 comments
Open

C# Serialization #1113

adriansuciu09 opened this issue Jun 3, 2024 · 3 comments
Labels

Comments

@adriansuciu09
Copy link

I was wondering if there are any plans to add serialization for C# to be able to generate read-write classes like for Python and Java (source: https://doc.kaitai.io/serialization.html)

@generalmimon
Copy link
Member

@zachwolfe should have already done that, but to my knowledge it hasn't been reviewed or integrated to the official testing suite like Java and Python, so I don't have any comprehensive measure of how well it works with different .ksy specs. I believe it should work mostly fine, though.

@adriansuciu09
Copy link
Author

adriansuciu09 commented Jun 3, 2024

Ok, i tried it using versio. 0.9, since in the documentation it said that version 0.10 is missing the serialization
grafik
i will try it with your link

@adriansuciu09
Copy link
Author

im testing in a Docker container. i already checkout the serialization branch. here is my dockerfile:

FROM openjdk:11-jre-slim

# Install sbt
WORKDIR /sbt
RUN apt-get update \
&& apt-get install -y wget \
&& wget https://github.com/sbt/sbt/releases/download/v1.5.0/sbt-1.5.0.tgz \
&& tar xzvf sbt-1.5.0.tgz -C /usr/share/ \
&& update-alternatives --install /usr/bin/sbt sbt /usr/share/sbt/bin/sbt 9999

# Install 'kaitai-struct-compiler'
WORKDIR /app
RUN apt-get install -y git \
&& git clone -b serialization https://github.com/filestar/kaitai_struct_compiler.git
WORKDIR /app/kaitai_struct_compiler
RUN sbt --error compilerJVM/stage

ENTRYPOINT ["./jvm/target/universal/stage/bin/kaitai-struct-compiler"]

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

No branches or pull requests

2 participants