private void ProgramAnaly(byte[] buf) {
byte[] vsnFileByte = new byte[buf.length];
System.arraycopy(buf, 0, vsnFileByte, 0, buf.length);
return new String(vsnFileByte);
}
Android中将Byte数据转成String
最新推荐文章于 2024-07-25 19:04:18 发布
private void ProgramAnaly(byte[] buf) {
byte[] vsnFileByte = new byte[buf.length];
System.arraycopy(buf, 0, vsnFileByte, 0, buf.length);
return new String(vsnFileByte);
}