projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06ac129
)
Fix ReadStream bufferSize docs
author
Felix Geisendörfer
<felix@debuggable.com>
Sun, 20 Feb 2011 12:45:25 +0000
(13:45 +0100)
committer
Ryan Dahl
<ry@tinyclouds.org>
Thu, 24 Feb 2011 20:46:17 +0000
(12:46 -0800)
The default is 64kb buffer, not 4kb.
Closes GH-702.
doc/api/fs.markdown
patch
|
blob
|
history
diff --git
a/doc/api/fs.markdown
b/doc/api/fs.markdown
index
18f12d9
..
437ba73
100644
(file)
--- a/
doc/api/fs.markdown
+++ b/
doc/api/fs.markdown
@@
-357,7
+357,8
@@
Returns a new ReadStream object (See `Readable Stream`).
encoding: null,
fd: null,
mode: 0666,
- bufferSize: 4096 }
+ bufferSize: 64 * 1024
+ }
`options` can include `start` and `end` values to read a range of bytes from
the file instead of the entire file. Both `start` and `end` are inclusive and