update all wireEncode & add packet test: CPacket

This commit is contained in:
free will committed 2021-04-07 16:37:05 +08:00
1 parent 424d182d60
commit 2bf431af9c
33 files changed
+335 -317

No files matched your search

@@ -49,21 +49,21 @@ public class LpPacketFragmentId implements TlvComponentBase,InitialAble,IEncodin
// 编码 TLV-VALUE
int tmpLen=encoder.prependNonNegativeInteger(this.id);
if(tmpLen<=0){
if(tmpLen<0){
return -1;
}
totalLength+=tmpLen;
// 编码 TLV-TYPE
tmpLen=encoder.prependVarNumber(new VlInt(totalLength));
if(tmpLen<=0){
if(tmpLen<0){
return -1;
}
totalLength+=tmpLen;
// 编码 TLV-TYPE
tmpLen=encoder.prependVarNumber(new VlInt(TLV.TlvLpPacketFragmentId));
if(tmpLen<=0){
if(tmpLen<0){
return -1;
}
totalLength+=tmpLen;