0
点赞
收藏
分享

微信扫一扫

public static Long ascByteToLong

慕容冲_a4b8 2022-08-01 阅读 43


 public static Long ascByteToLong(byte[] asc, int offset, int size) {
  StringBuffer s = new StringBuffer();
  for (int i = 0; i < size; i++) {
   s.append((char) asc[offset + i]);
  }
  return Long.parseLong(s.toString().trim());
   }

举报

相关推荐

0 条评论