buffer: add indexOf() method
authorTrevor Norris <trev.norris@gmail.com>
Thu, 22 Jan 2015 23:44:13 +0000 (15:44 -0800)
committerTrevor Norris <trev.norris@gmail.com>
Wed, 4 Mar 2015 21:16:11 +0000 (14:16 -0700)
commit78581c8d902f2ed32712b342091d89016030e4ba
tree96aac497e1f4d8aad4d8b6a38749423ed5079551
parentabb00cc915b2e336afb73210298f673a00dad9f0
buffer: add indexOf() method

Add Buffer#indexOf(). Support strings, numbers and other Buffers. Also
included docs and tests.

Special thanks to Sam Rijs <srijs@airpost.net> for first proposing this
change.

PR-URL: https://github.com/iojs/io.js/pull/561
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
doc/api/buffer.markdown
lib/buffer.js
src/node_buffer.cc
test/parallel/test-buffer-indexof.js [new file with mode: 0644]