Skip to content

Conversation

@CZDanol
Copy link
Collaborator

@CZDanol CZDanol commented Dec 21, 2025

Addresses #119

@CZDanol CZDanol changed the title Unknown enum Support for unknown enum items Dec 21, 2025
@XAMPPRocky
Copy link
Contributor

Also good to know that enums are u16, I had assumed they were i32.

@CZDanol
Copy link
Collaborator Author

CZDanol commented Dec 21, 2025

It doesn't really matter unless you want to support undefined values. CBOR encodes all ints in the least bytes necessary.

@XAMPPRocky
Copy link
Contributor

XAMPPRocky commented Dec 21, 2025

Not for the wire format no, but it matters for the implementors as if you're writing bindings in a language that uses fixed size numbers you are able to allocate only two bytes to store the discriminant key.

@CZDanol CZDanol merged commit 9745774 into prusa3d:main Jan 6, 2026
4 checks passed
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.

3 participants