File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -3069,6 +3069,32 @@ Returns the number of `bytesRead`.
3069
3069
For detailed information, see the documentation of the asynchronous version of
3070
3070
this API: [ ` fs.read() ` ] [ ] .
3071
3071
3072
+ ## ` fs.readSync(fd, buffer, [options]) `
3073
+ <!-- YAML
3074
+ added: REPLACEME
3075
+ changes:
3076
+ - version: REPLACEME
3077
+ pr-url: https://github.com/nodejs/node/pull/32460
3078
+ description: Options object can be passed in
3079
+ to make offset, length and position optional
3080
+ -->
3081
+
3082
+ * ` fd ` {integer}
3083
+ * ` buffer ` {Buffer|TypedArray|DataView}
3084
+ * ` options ` {Object}
3085
+ * ` offset ` {integer} ** Default:** ` 0 `
3086
+ * ` length ` {integer} ** Default:** ` buffer.length `
3087
+ * ` position ` {integer} ** Default:** ` null `
3088
+ * Returns: {number}
3089
+
3090
+ Returns the number of ` bytesRead ` .
3091
+
3092
+ Similar to the above ` fs.readSync ` function, this version takes an optional ` options ` object.
3093
+ If no ` options ` object is specified, it will default with the above values.
3094
+
3095
+ For detailed information, see the documentation of the asynchronous version of
3096
+ this API: [ ` fs.read() ` ] [ ] .
3097
+
3072
3098
## ` fs.readv(fd, buffers[, position], callback) `
3073
3099
<!-- YAML
3074
3100
added: REPLACEME
You can’t perform that action at this time.
0 commit comments