Deno.File:read() block size limit? #9906
-
const f = await Deno.open('data/65536BYTEFILE', { read: true });
const block = new Uint8Array(65536);
let len = await f.read(block);
console.log(len, block.byteLength);
len = await f.read(block);
console.log(len, block.byteLength);
f.close();Outputs Why doesn't f.read() use the entire 64k buffer? Platform: Windows. |
Beta Was this translation helpful? Give feedback.
Answered by
bnoordhuis
Apr 14, 2021
Replies: 1 comment
-
|
It's a limitation in Tokio, see #9256 and #10157. It's not clear yet how we'll address it but we're aware of the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mehuge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a limitation in Tokio, see #9256 and #10157. It's not clear yet how we'll address it but we're aware of the issue.