类 BytesReader
java.lang.Object
com.tencent.tts.utils.BytesReader
public class BytesReader
extends java.lang.Object
-
构造器概要
构造器 构造器 说明 BytesReader() -
方法概要
修饰符和类型 方法 说明 static inttoInt(byte[] bytes)得到对应的int类型数据。static longtoUnsignedInt(byte[] bytes)获取一个unsigned 4-byte的整数,结果以long表示,取值范围为0~4294967295 如果参数为null或长度不为4则返回0.
-
构造器详细资料
-
BytesReader
public BytesReader()
-
-
方法详细资料
-
toInt
public static int toInt(byte[] bytes)得到对应的int类型数据。如果参数为null或长度不为4则返回0.- 参数:
bytes- 字节数据- 返回:
- 对应的int类型数据
-
toUnsignedInt
public static long toUnsignedInt(byte[] bytes)获取一个unsigned 4-byte的整数,结果以long表示,取值范围为0~4294967295 如果参数为null或长度不为4则返回0.- 参数:
bytes- 字节数据- 返回:
- unsigned 4-byte的整数
-