Replies: 3 comments 2 replies
-
This sound interesting. So do you have an actual use case that you are building?
There's also DataView to consider. |
Beta Was this translation helpful? Give feedback.
-
I'm currently sketching a filtering engine that would either run the filter in .NET or in JS. As the data are uint32, which falls into If the idea seems plausible, maybe I can dive a bit deeper into Jint and try to sketch a PR with it :-) |
Beta Was this translation helpful? Give feedback.
-
Will be implemented in PR #1590. Closing the discussion as the rest will be implementation specific. |
Beta Was this translation helpful? Give feedback.
-
I did my best to understand
JsValue
and its semantics of value passing. Has it been considered to provide anotherJsValue
that could represent anArrayBufferInstance
that would be based onReadOnlyMemory<byte>
. This could be beneficial for scenarios where raw data are loaded in .NET runtime and passed to some script for executing logic over it. Additionally, depending on how closely Jint needs to be in regards to the buffer detachment, anArrayBufferInstance
that is based onReadOnlyMemory<byte>
could allow a clone-less copying, just by slicing over the underlyingReadOnlyMemory<byte>
.Beta Was this translation helpful? Give feedback.
All reactions