using hex address in log to match the input
reimplemeted NativeUtils using Java 7 java.nio API