buffer: add end parameter · nodejs/node@e2eb88b · GitHub
Skip to content

Commit e2eb88b

Browse files
ronagaduh95
authored andcommitted
buffer: add end parameter
To limit how far into the buffer we search without allocating an unnecessary subarray. Signed-off-by: Robert Nagy <ronay@icloud.com> PR-URL: #62390 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 8f4a5c6 commit e2eb88b

5 files changed

Lines changed: 195 additions & 58 deletions

File tree

doc/api/buffer.md

Lines changed: 21 additions & 6 deletions

lib/buffer.js

Lines changed: 53 additions & 26 deletions

0 commit comments

Comments
 (0)