this is to implement memory allocation in the array . like malloc . concode_field_sep long serialVersionUID concode_elem_sep byte[] array concode_elem_sep int DEFAULT_BLOCK_SIZE concode_elem_sep int blockSize concode_elem_sep int n concode_field_sep void trimToSize concode_elem_sep byte get concode_elem_sep int length concode_elem_sep byte[] getArray concode_elem_sep void put concode_elem_sep int capacity
int function ( int arg0 ) { int loc0 = n ; int loc1 = array . length ; if ( n + arg0 >= loc1 ) { byte [ ] loc2 = new byte [ loc1 + blockSize ] ; System . arraycopy ( array , 0 , loc2 , 0 , loc1 ) ; array = loc2 ; } n += arg0 ; return loc0 ; }