Пример #1
0
 /** {@inheritDoc} */
 protected void decodeBinarySpecific(LLRPBitList binary) {
   int position = 0;
   int tempByteLength;
   int tempLength = 0;
   int count;
   SignedShort type;
   int fieldCount;
   Custom custom;
   vendorIdentifier = new UnsignedInteger(binary.subList(position, UnsignedInteger.length()));
   position += UnsignedInteger.length();
   parameterSubtype = new UnsignedInteger(binary.subList(position, UnsignedInteger.length()));
   position += UnsignedInteger.length();
   data = new BytesToEnd_HEX(binary.subList(position, binary.length() - position));
   position += (binary.length() - position);
 }
Пример #2
0
 /** {@inheritDoc} */
 protected void decodeBinarySpecific(LLRPBitList binary) {
   int position = 0;
   int tempByteLength;
   int tempLength = 0;
   int count;
   SignedShort type;
   int fieldCount;
   Custom custom;
   opSpecID = new UnsignedShort(binary.subList(position, UnsignedShort.length()));
   position += UnsignedShort.length();
   accessPassword = new UnsignedInteger(binary.subList(position, UnsignedInteger.length()));
   position += UnsignedInteger.length();
   mB = new TwoBitField(binary.subList(position, TwoBitField.length()));
   position += TwoBitField.length();
   position += reserved0.length();
   wordPointer = new UnsignedShort(binary.subList(position, UnsignedShort.length()));
   position += UnsignedShort.length();
   wordCount = new UnsignedShort(binary.subList(position, UnsignedShort.length()));
   position += UnsignedShort.length();
 }