int write ( final ByteBuf buffer , int offset , int length ) { int index = buffer . forEachByte ( offset , length , writeProcessor ) ; return index == - 1 ? length : index - offset ; }
Writes an array to the block .