@ SuppressWarnings ( "deprecation" ) public static ByteBuf writeShortBE ( ByteBuf buf , int shortValue ) { return buf . order ( ) == ByteOrder . BIG_ENDIAN ? buf . writeShort ( shortValue ) : buf . writeShortLE ( shortValue ) ; }
Writes a big - endian 16 - bit short integer to the buffer .