Class AttributeUtil


  • public final class AttributeUtil
    extends Object
    • Method Detail

      • formatAttribute

        public static void formatAttribute​(int flags,
                                           int type,
                                           io.netty.buffer.ByteBuf value,
                                           io.netty.buffer.ByteBuf buffer)
        Adds header to attribute value. If the length of the attribute value exceeds one-byte length field, set EXTENDED bit and write length as 2B field.
        Parameters:
        flags - attribute flags
        type - of the attribute
        value - attribute value
        buffer - ByteBuf where the attribute will be copied with its header