returns a buffer to the pool , throwing away old buffers if the pool would exceed its allotted size . concode_field_sep List<byte[]> mBuffersByLastUse concode_elem_sep Comparator<byte[]> BUF_COMPARATOR concode_elem_sep List<byte[]> mBuffersBySize concode_elem_sep int mCurrentSize concode_elem_sep int mSizeLimit concode_field_sep int compare concode_elem_sep void trim concode_elem_sep byte[] getBuf
void function ( byte [ ] arg0 ) { if ( arg0 == null || arg0 . length > mSizeLimit ) { return ; } mBuffersByLastUse . add ( arg0 ) ; int loc0 = Collections . binarySearch ( mBuffersBySize , arg0 , BUF_COMPARATOR ) ; if ( loc0 < 0 ) { loc0 = - loc0 - 1 ; } mBuffersBySize . add ( loc0 , arg0 ) ; mCurrentSize += arg0 . length ; trim ( ) ; }