int reallocate ( int fieldOffset ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . entry ( this , tc , "reallocate" , new Object [ ] { Integer . valueOf ( offset ) } ) ; byte [ ] oldContents = contents ; int oldOffset = offset ; contents = new byte [ length ] ; System . arraycopy ( oldContents , offset , contents , 0 , length ) ; offset = 0 ; int result = fieldOffset - oldOffset ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . exit ( this , tc , "reallocate" , Integer . valueOf ( result ) ) ; return result ; }
Reallocate the entire contents buffer