From: David Arjona Date: Fri, 5 Apr 2024 23:59:47 +0000 (-0400) Subject: Remove compatibility methods at BitBufferHelper X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=02e0cef5805e5fa5d9259c133b5675917957c9fd;hp=02e0cef5805e5fa5d9259c133b5675917957c9fd;p=l2switch.git Remove compatibility methods at BitBufferHelper The BitBufferHelper methods getShort, getInt and getLong return a short, int and long respectively. They have been replaced with equivalent methods that return a Uint8, Uint16 or Uint32 types. The following sections explain these replacements: 1. getShort Code that required a Uint8 type instead of a short, started using a new method "getUint8(byte[])". However a method that required to collect the first N bits, where N is 16>N>8, started using a new method "getUint16(byte[], int)". 2. getInt Code that required a Uint16 type instead of an int, started using a new method "getUint16(byte[])". However methods that required to test data in 2 bytes, started using the "getUint16(byte[], int)" method. 3. getLong Code that required a Uint32 type instead of a long, started using a new method "getUint32(byte[])". Signed-off-by: David Arjona Change-Id: I5b04e8f06b8c23fdd2c3294fc9f5386f6b8b7928 ---