finished component: IdentifierComponent

This commit is contained in:
free will committed 2021-03-10 17:32:40 +08:00
1 parent 37cb1a9b36
commit 8182946c49
21 files changed
+279 -37

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ public class TTL implements IEncodingAble {
@Override
public boolean wireDecode(Block block) {
// 检查Type是否正确
if(!TLV.expectType(block.getTlvType(),new VlInt(TLV.TlvTTL))){
if(!TLV.expectType(block.getType(),new VlInt(TLV.TlvTTL))){
return false;
}
long value=TLV.readNonNegativeInteger(block.getValue(),0,block.getLength().getVlIntValue2Int());