test_class.declarator: LOG = LoggerFactory.getLogger(TlvDecoderTest.class)
test_class.modifier: private static
test_class.original_string: private static Logger LOG = LoggerFactory.getLogger(TlvDecoderTest.class);
test_class.type: Logger
test_class.var_name: LOG
test_class.file: leshan-core/src/test/java/org/eclipse/leshan/core/tlv/TlvDecoderTest.java
test_class.identifier: TlvDecoderTest
test_case.body: @Test
      public void decode_object_link() throws TlvException {
          String dataStr = "12345678";
          byte[] bytes = Hex.decodeHex(dataStr.toCharArray());
          ObjectLink objlnk = TlvDecoder.decodeObjlnk(bytes);
          assertEquals(0x1234, objlnk.getObjectId());
          assertEquals(0x5678, objlnk.getObjectInstanceId());
  
          dataStr = "ffffffff";
          bytes = Hex.decodeHex(dataStr.toCharArray());
          objlnk = TlvDecoder.decodeObjlnk(bytes);
          assertEquals(0xffff, objlnk.getObjectId());
          assertEquals(0xffff, objlnk.getObjectInstanceId());
      }
test_case.class_method_signature: TlvDecoderTest.decode_object_link()
test_case.full_signature: @Test public void decode_object_link()
test_case.identifier: decode_object_link
test_case.invocations: decodeHex toCharArray decodeObjlnk assertEquals getObjectId assertEquals getObjectInstanceId decodeHex toCharArray decodeObjlnk assertEquals getObjectId assertEquals getObjectInstanceId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void decode_object_link()
focal_class.declarator: LOG = LoggerFactory.getLogger(TlvDecoder.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(TlvDecoder.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.file: leshan-core/src/main/java/org/eclipse/leshan/core/tlv/TlvDecoder.java
focal_class.identifier: TlvDecoder
focal_class.class_method_signature: TlvDecoder.decode(ByteBuffer input)
focal_class.full_signature: public static Tlv[] decode(ByteBuffer input)
focal_class.identifier: decode
focal_class.modifiers: public static
focal_class.parameters: (ByteBuffer input)
focal_class.return: Tlv[]
focal_class.signature: Tlv[] decode(ByteBuffer input)
focal_class.class_method_signature: TlvDecoder.decodeString(byte[] value)
focal_class.full_signature: public static String decodeString(byte[] value)
focal_class.identifier: decodeString
focal_class.modifiers: public static
focal_class.parameters: (byte[] value)
focal_class.return: String
focal_class.signature: String decodeString(byte[] value)
focal_class.class_method_signature: TlvDecoder.decodeBoolean(byte[] value)
focal_class.full_signature: public static boolean decodeBoolean(byte[] value)
focal_class.identifier: decodeBoolean
focal_class.modifiers: public static
focal_class.parameters: (byte[] value)
focal_class.return: boolean
focal_class.signature: boolean decodeBoolean(byte[] value)
focal_class.class_method_signature: TlvDecoder.decodeDate(byte[] value)
focal_class.full_signature: public static Date decodeDate(byte[] value)
focal_class.identifier: decodeDate
focal_class.modifiers: public static
focal_class.parameters: (byte[] value)
focal_class.return: Date
focal_class.signature: Date decodeDate(byte[] value)
focal_class.class_method_signature: TlvDecoder.decodeObjlnk(byte[] value)
focal_class.full_signature: public static ObjectLink decodeObjlnk(byte[] value)
focal_class.identifier: decodeObjlnk
focal_class.modifiers: public static
focal_class.parameters: (byte[] value)
focal_class.return: ObjectLink
focal_class.signature: ObjectLink decodeObjlnk(byte[] value)
focal_class.class_method_signature: TlvDecoder.decodeInteger(byte[] value)
focal_class.full_signature: public static Number decodeInteger(byte[] value)
focal_class.identifier: decodeInteger
focal_class.modifiers: public static
focal_class.parameters: (byte[] value)
focal_class.return: Number
focal_class.signature: Number decodeInteger(byte[] value)
focal_class.class_method_signature: TlvDecoder.decodeFloat(byte[] value)
focal_class.full_signature: public static Number decodeFloat(byte[] value)
focal_class.identifier: decodeFloat
focal_class.modifiers: public static
focal_class.parameters: (byte[] value)
focal_class.return: Number
focal_class.signature: Number decodeFloat(byte[] value)
focal_method.body: public static ObjectLink decodeObjlnk(byte[] value) throws TlvException {
          ByteBuffer bff = ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN);
          bff.put(value);
          int val1 = bff.getShort(0) & 0xFFFF;
          int val2 = bff.getShort(2) & 0xFFFF;
          return new ObjectLink(val1, val2);
      }
focal_method.class_method_signature: TlvDecoder.decodeObjlnk(byte[] value)
focal_method.full_signature: public static ObjectLink decodeObjlnk(byte[] value)
focal_method.identifier: decodeObjlnk
focal_method.invocations: order allocate put getShort getShort
focal_method.modifiers: public static
focal_method.parameters: (byte[] value)
focal_method.return: ObjectLink
focal_method.signature: ObjectLink decodeObjlnk(byte[] value)