| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2a5c6d7 commit f1f9aff
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1054,8 +1054,10 @@ const buf = Buffer.from([1,-2,3,4]); | |||
| 1054 | 1054 | ||
| 1055 | 1055 | buf.readInt32BE(); | |
| 1056 | 1056 | // returns 33424132 | |
| 1057 | - buf.readInt32LE(1); | ||
| 1057 | + buf.readInt32LE(); | ||
| 1058 | 1058 | // returns 67370497 | |
| 1059 | + buf.readInt32LE(1); | ||
| 1060 | + // throws RangeError: Index out of range | ||
| 1059 | 1061 | ``` | |
| 1060 | 1062 | ||
| 1061 | 1063 | ### buf.readIntBE(offset, byteLength[, noAssert]) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments