-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(wit-bindgen-go): align flags decoding #157
feat(wit-bindgen-go): align flags decoding #157
Conversation
Let me know when this is OK, I will squash the commits and update the commit message. |
btw, just a note here - I've just realized that WebAssembly/component-model#370 is a thing and the change was already merged in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
feel free to squash/rebase if you wish! |
Flags encoding/decoding in Go is now rewritten to use the correct binary encoding. Flag structs now contain an addition ReadFromIndex method that can be used for decoding. This makes the generated code more testable.
e54cae7
to
9e8caeb
Compare
Done. |
Flags are now encoded/decoded as bitmaps according to the binary encoding spec.
To decode flags,
ReadFromIndex
is now being generated as a standalone method so that it can be tested.Basic tests added for both encoding and decoding.