425426427428429430431432433434435
.appendByte(indexBitLength) .appendShort(numberOfHashes) .appendShort(numberOfOverflows); for (int i = 0; i < numberOfHashes; i++) { out.appendShort(shortHashes[i]); } for (int i = 0; i < numberOfOverflows; i++) { out.appendShort(overflows[i]); }
429430431432433434435436437438439
for (int i = 0; i < numberOfHashes; i++) { out.appendShort(shortHashes[i]); } for (int i = 0; i < numberOfOverflows; i++) { out.appendShort(overflows[i]); } return out.slice(); }
4546474849505152535455
markValueSet(); } protected ByteBuffer getValueData() throws ValueNotSetException { ByteBuffer valueBuf = new ByteBuffer(); valueBuf.appendShort(getValue()); return valueBuf; } public void setValue(short p_value) { value = p_value;
158159160161162163164165166167168
* carried by this TLV. */ public ByteBuffer getData() throws ValueNotSetException { if (hasValue()) { ByteBuffer tlvBuf = new ByteBuffer(); tlvBuf.appendShort(getTag()); tlvBuf.appendShort(encodeUnsigned(getLength())); tlvBuf.appendBuffer(getValueData()); return tlvBuf; } else { return null;
159160161162163164165166167168169
*/ public ByteBuffer getData() throws ValueNotSetException { if (hasValue()) { ByteBuffer tlvBuf = new ByteBuffer(); tlvBuf.appendShort(getTag()); tlvBuf.appendShort(encodeUnsigned(getLength())); tlvBuf.appendBuffer(getValueData()); return tlvBuf; } else { return null; }