-
Notifications
You must be signed in to change notification settings - Fork 35
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
Demo usage of C# with DotNet8 #450
Conversation
Memory memory = instance.memory(); | ||
switch (clockId) { | ||
case WasiClockId.REALTIME: | ||
memory.writeLong(resultPtr, 1L); |
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.
I have done some reading, but I cannot come up with anything better than "just use 1" ...
I'm open to suggestions!
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.
This seems fine to me.
cc5f194
to
2bb82de
Compare
added a bunch of trimming options and now looks better. |
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.
Cool!
Memory memory = instance.memory(); | ||
switch (clockId) { | ||
case WasiClockId.REALTIME: | ||
memory.writeLong(resultPtr, 1L); |
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.
This seems fine to me.
2bb82de
to
de5b076
Compare
C# it's a single Wasi function away 🙂
(the size of the resulting binary is huge ...)