public class UpDownloadDatum extends Datum
| 构造器和说明 |
|---|
UpDownloadDatum() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
byteArrayLength()
获取字节数组长度
|
static UpDownloadDatum |
createDownloadData(byte[] data)
根据字节数据创建下载数据结构
|
static UpDownloadDatum |
fromBytes(byte[] data,
EMessageType messageType)
字节数组数据解析
|
static UpDownloadDatum |
fromBytes(byte[] data,
int offset,
EMessageType messageType)
字节数组数据解析
|
byte[] |
toByteArray()
转换为字节数组
|
public static UpDownloadDatum fromBytes(byte[] data, EMessageType messageType)
data - 字节数组数据messageType - 消息类型public static UpDownloadDatum fromBytes(byte[] data, int offset, EMessageType messageType)
data - 字节数组数据offset - 偏移量messageType - 消息类型public static UpDownloadDatum createDownloadData(byte[] data)
data - data数据部分public int byteArrayLength()
IObjectByteArraybyteArrayLength 在接口中 IObjectByteArraybyteArrayLength 在类中 Datumpublic byte[] toByteArray()
IObjectByteArraytoByteArray 在接口中 IObjectByteArraytoByteArray 在类中 DatumCopyright © 2024. All rights reserved.