memcmp

equivalent of memcmp() in Java?

If I have two byte[] arrays, is there a built-in function to compare them ala C's memcmp() ? ...

Using memset on structures in C++

Hey guys. I am working on fixing older code for my job. It is currently written in C++. They converted static allocation to dynamic but didn't edit the memsets/memcmp/memcpy. This is my first programming internship so bare with my newbe-like question. The following code is in C, but I want to have it in C++ ( I read that malloc isn't go...

How to call memcmp() on two parts of byte[] (with offset)?

Hi, I want to compare parts of byte[] efficiently - so I understand memcmp() should be used. I know I can using PInvoke to call memcmp() - http://stackoverflow.com/questions/43289/comparing-two-byte-arrays-in-net But, I want to compare only parts of the byte[] - using offset, and there is no memcmp() with offset since it uses pointers...

How to use JNI to call MEMCMP from Java

Hi, I need to compare 2 byte arrays and know which one is bigger or if they are equal (just equal or different is not enough). The byte arrays represent a String value of 15 characters or more. This comparison is repeated considerably in my code. I would like to improve the bye array compare by using an equivalent of C++ memcmp metho...