if( rsv != 0 )
throw new InvalidFrameException( "bad rsv " + rsv );
byte b2 = buffer.get( /*1*/);
boolean MASK = ( b2 & -128 ) != 0;
int payloadlength = (byte) ( b2 & ~(byte) 128 );
Opcode optcode = toOpcode( (byte) ( b1 & 15 ) );
if( !FIN ) {
if( optcode == Opcode.PING || optcode == Opcode.PONG || optcode == Opcode.CLOSING ) {
throw new InvalidFrameException( "control frames may no be fragmented" );
}