@ SuppressWarnings ( "deprecation" ) private static int unsignedShortBE ( ByteBuf buffer , int offset ) { return buffer . order ( ) == ByteOrder . BIG_ENDIAN ? buffer . getUnsignedShort ( offset ) : buffer . getUnsignedShortLE ( offset ) ; }
Reads a big - endian unsigned short integer from the buffer