Why is Readable.read(size) always returning the whole readable data?
#5154
Unanswered
ericmorand
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am obviously missing something obvious, but I can't figure what.
Consider the following code:
The last command always output "1000000" - that is the size of the length of the string that the Readable was created from. I expect the output size to be much lower since I explicitely ask the Readable to read only 16 bytes.
What am I missing?
How can we read partial data from a Readable?
Beta Was this translation helpful? Give feedback.
All reactions