Remove compatibility methods at BitBufferHelper 98/111298/1
authorDavid Arjona <darjona@yahoo.com>
Fri, 5 Apr 2024 23:59:47 +0000 (19:59 -0400)
committerDavid Arjona <darjona@yahoo.com>
Fri, 5 Apr 2024 23:59:47 +0000 (19:59 -0400)
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 <darjona@yahoo.com>
Change-Id: I5b04e8f06b8c23fdd2c3294fc9f5386f6b8b7928


No differences found