/** * Makes a value of incoming label 20 leftmost bits in 24bit number and sets bottom bit * @param label object * @return value with bottom bit */ private static int intForMplsLabelWithBottomBit(final MplsLabel label) { final int value = intForMplsLabel(label); return setBottomBit(value); }
/** * Serializes incoming MplsLabel without bottom bit * @param label MplsLabel object * @return */ public static ByteBuf byteBufForMplsLabel(final MplsLabel label) { return Unpooled.copyMedium(intForMplsLabel(label)); }