Commit 226f98a3 authored by Sean McArthur's avatar Sean McArthur Committed by Trevor Norris
Browse files

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: default avatarTrevor Norris <trev.norris@gmail.com>
parent 681fe599
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment