/**
  * @param slice with 20 leftmost bits as label
  * @return value of bottom bit
  */
 public static boolean getBottomBit(final ByteBuf slice) {
   return (slice.getUnsignedMedium(slice.readerIndex()) & BOTTOM_LABEL_BIT) == 1;
 }
Example #2
0
 @Override
 public int getUnsignedMedium(int index) {
   return buf.getUnsignedMedium(index);
 }
 @Override
 public int getUnsignedMedium(int var1) {
   return a.getUnsignedMedium(var1);
 }