question: public static void appendLengthAndMask ( ByteBuffer buffer , int length , byte mask [ ] ) { if ( mask != null ) { appendLength ( buffer , length , true ) ; buffer . put ( mask ) ; } else { appendLength ( buffer , length , false ) ; } }
target:  Appends the Length and Mask to the buffer