generate the whole frame header + payload copy into a single bytebuffer . note : this is slow , moves lots of memory around . only use this if you must such as in unit testing . concode_field_sep ByteBufferPool bufferPool concode_elem_sep boolean validating concode_elem_sep byte flagsInUse concode_elem_sep int MAX_HEADER_LENGTH concode_elem_sep boolean readOnly concode_elem_sep WebSocketBehavior behavior concode_field_sep void setRsv1InUse concode_elem_sep void setRsv3InUse concode_elem_sep void assertFrameValid concode_elem_sep boolean isRsv3InUse concode_elem_sep ByteBuffer generateHeaderBytes concode_elem_sep void generateHeaderBytes concode_elem_sep void setRsv2InUse concode_elem_sep String toString concode_elem_sep void configureFromExtensions concode_elem_sep ByteBufferPool getBufferPool concode_elem_sep boolean isRsv2InUse concode_elem_sep boolean isRsv1InUse
void function ( Frame arg0 , ByteBuffer arg1 ) { arg1 . put ( generateHeaderBytes ( arg0 ) ) ; if ( arg0 . hasPayload ( ) ) { if ( readOnly ) { arg1 . put ( arg0 . getPayload ( ) . slice ( ) ) ; } else { arg1 . put ( arg0 . getPayload ( ) ) ; } } }