You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
-`offset` is an Integer with the byte offset to begin reading from.
723
723
-`count` is an Integer with the maximum number of bytes to read.
724
724
725
-
`callback` must follow the `function (err, buf) {}` signature, where `err` is an Error if the operation was not successful and `buf` is a Buffer with the contents of `path`.
725
+
`callback` must follow the `function (err, buf) {}` signature, where `err` is an Error if the operation was not successful and `buf` is a [`Buffer`][b] with the contents of `path`.
726
726
727
727
If no `callback` is passed, a promise is returned.
-`options` is an optional Object that might contain the following keys:
751
+
-`offset` is an Integer with the byte offset to begin reading from.
752
+
-`count` is an Integer with the maximum number of bytes to read.
753
+
754
+
`callback` must follow the `function (err, stream) {}` signature, where `err` is an Error if the operation was not successful and `stream` is a [`ReadableStream`][rs] with the contents of `path`.
755
+
756
+
If no `callback` is passed, a promise is returned.
-`options` is an optional Object that might contain the following keys:
780
+
-`offset` is an Integer with the byte offset to begin reading from.
781
+
-`count` is an Integer with the maximum number of bytes to read.
782
+
783
+
`callback` must follow the `function (err, stream) {}` signature, where `err` is an Error if the operation was not successful and `stream` is a [`PullStream`][ps] with the contents of `path`.
784
+
785
+
If no `callback` is passed, a promise is returned.
0 commit comments