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

Add _emitfulltype to Optional and _emitprimitivetype to Peek #1029

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wbarnha
Copy link

@wbarnha wbarnha commented Apr 24, 2023

I'm in the process of exporting Structs to Kaitai schemas, and the Optional field is something I use very often.

I figure that since Optional is typically parsed only when data is available, then using not(_.io.eof) could be used to achieve similar functionality. Or is there something else I'm missing here?

I'm in the process of exporting Structs to Kaitai schemas, and the `Optional` field is something I use very often. 

I figure that since `Optional` is typically parsed only when data is available, then using `not _.io.eof` could be used to achieve similar functionality. Or is there something else I'm missing here?
@wbarnha wbarnha changed the title Add emitfulltype to Optional Add _emitfulltype to Optional and _emitprimitivetype to Peek Apr 24, 2023
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

Successfully merging this pull request may close these issues.

None yet

1 participant