lizhanwei
2020-02-18 87ab0bd072bd42c09a649759090942781ab53fcb
im_lib/src/main/java/com/anyun/im_lib/util/ByteUtil.java
@@ -3,6 +3,8 @@
import android.text.TextUtils;
import android.util.Log;
import com.safeluck.aykj.utils.BytesUtils;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
@@ -71,7 +73,7 @@
            byte b = (byte) a;
            bbt[p] = b;
        }
        Log.i(TAG, "str2Bcd: "+byte2HexStr(bbt));
//        Log.i(TAG, "str2Bcd: "+byte2HexStr(bbt));
        return bbt;
    }
@@ -244,7 +246,9 @@
        String time = sdf.format(System.currentTimeMillis());
        byte[] timeStampBCD = ByteUtil.str2Bcd(time);
//        String hex = "B7 A2 B6 AF BB FA C6 F4 B6 AF BA F3 A3 AC B2 BB BC B0 CA B1 CB C9 BF AA C6 F4 B6 AF BF AA B9 D8";
//        String string = new String(BytesUtils.hexStringToBytes(hex.replace(" ","")));
//        System.out.println(string);
    }
    public static byte[] subArray(byte[] srcBytes, int begin, int length) {