public static ByteBuf copyBoolean ( boolean ... values ) { if ( values == null || values . length == 0 ) { return EMPTY_BUFFER ; } ByteBuf buffer = buffer ( values . length ) ; for ( boolean v : values ) { buffer . writeBoolean ( v ) ; } return buffer ; }
Create a new big - endian buffer that holds a sequence of the specified boolean values .