Skip to content

TypedArray (e.g. Uint8Array) into BufRead/Read without memory copying #2780

Answered by alexcrichton
ingun37 asked this question in Q&A
Discussion options

You must be logged in to vote

You'll probably want to hold a js_sys::Uint8Array and then develop your own abstraction around it (using methods in js-sys to copy data in/out). Currently there's nothing built-in for this, however.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ingun37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants