reads in at most maxbyteswanted in dst but never morethan a chunk . concode_field_sep ByteBuffer byteBuffer concode_elem_sep byte[] byteArray concode_elem_sep boolean moreBlocks concode_elem_sep ChannelBuffer source concode_field_sep void readToTheEnd concode_elem_sep boolean isOpen concode_elem_sep int read concode_elem_sep void close concode_elem_sep void readNextBlock
int function ( ByteBuffer arg0 , int arg1 ) { if ( byteBuffer . remaining ( ) == 0 && moreBlocks ) { readNextBlock ( ) ; } int loc0 = Math . min ( arg1 , byteBuffer . remaining ( ) ) ; arg0 . put ( byteArray , byteBuffer . position ( ) , loc0 ) ; byteBuffer . position ( byteBuffer . position ( ) + loc0 ) ; return loc0 ; }