private int findFrameSizeValueLength ( final ByteBuf buffer ) { final int readerIndex = buffer . readerIndex ( ) ; int index = buffer . forEachByte ( BYTE_PROCESSOR ) ; if ( index >= 0 ) { return index - readerIndex ; } else { return - 1 ; } }
Find the byte length of the frame length value .