org.snmp4j.smi.OID.getUnsigned()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.snmp4j.smi.OID.getUnsigned()方法的一些代码示例,展示了OID.getUnsigned()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OID.getUnsigned()方法的具体详情如下:
包路径:org.snmp4j.smi.OID
类名称:OID
方法名:getUnsigned

OID.getUnsigned介绍

[英]Gets the unsigned sub-identifier value at the specified position.
[中]获取指定位置的无符号子标识符值。

代码示例

代码示例来源:origin: org.snmp4j/snmp4j-agent

private static boolean checkIndexBytes(OID index, long start, long end) {
  if ((start < 0) || (start > MOTableIndex.MAX_INDEX_OID_LENGTH) ||
      (end < 0) || (end > MOTableIndex.MAX_INDEX_OID_LENGTH)) {
    return false;
  }
  for (int i = (int) start; ((i < index.size()) && (i < end)); i++) {
    if (index.getUnsigned(i) > 255) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: org.kaazing/snmp4j-agent

private static boolean checkIndexBytes(OID index, long start, long end) {
 if ((start < 0) || (start > MOTableIndex.MAX_INDEX_OID_LENGTH) ||
   (end < 0) || (end > MOTableIndex.MAX_INDEX_OID_LENGTH)) {
  return false;
 }
 for (int i=(int)start; ((i<index.size()) && (i<end)); i++) {
  if (index.getUnsigned(i) > 255) {
   return false;
  }
 }
 return true;
}

代码示例来源:origin: org.snmp4j/snmp4j

public void fromSubIndex(OID subIndex, boolean impliedLength) {
 setValue(subIndex.getUnsigned(0));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

public void fromSubIndex(OID subIndex, boolean impliedLength) {
 setValue(subIndex.getUnsigned(0));
}

代码示例来源:origin: org.kaazing/snmp4j

public void fromSubIndex(OID subIndex, boolean impliedLength) {
 setValue(subIndex.getUnsigned(0));
}

代码示例来源:origin: org.kaazing/snmp4j-agent

if (!checkIndexBytes(index, l, l+index.getUnsigned(l)+1)) {
  return false;
l += index.getUnsigned(l)+1;

代码示例来源:origin: org.snmp4j/snmp4j-agent

if (!checkIndexBytes(index, l + 1, l + index.getUnsigned(l) + 1)) {
      return false;
  l += index.getUnsigned(l) + 1;
} else {
  if (isStringSyntax(subIndex.getSmiSyntax())) {

相关文章