Compare the buffer contents with data and size.
buffer to compare
data to compare to
size of data to compare
Compare the buffer contents with data and size.