diff options
author | Sean McArthur <sean.monstar@gmail.com> | 2014-03-06 10:21:04 -0800 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-04-28 22:09:48 -0700 |
commit | 226f98a356fb62a706bc860c36c9ebc6124d776e (patch) | |
tree | bee8ac775e3cdd12188ced6c2634d7fefd56833b /src/node_crypto.cc | |
parent | 681fe599d7a45fb537f948c08e64cdce06bc585d (diff) | |
download | node-new-226f98a356fb62a706bc860c36c9ebc6124d776e.tar.gz |
buffer: add compare and equals methods
compare() works like String.localeCompare such that:
Buffer.compare(a, b) === a.compare(b);
equals() does a native check to see if two buffers are equal.
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/node_crypto.cc')
0 files changed, 0 insertions, 0 deletions