@Override public boolean release(int decrement){
  if (isEmpty) {
    return false;
  }
  if (decrement < 1) {
    throw new IllegalStateException(String.format("release(%d) argument is not positive. Buffer Info: %s",decrement,toVerboseString()));
  }
  final int refCnt=ledger.decrement(decrement);
  if (BaseAllocator.DEBUG) {
    historicalLog.recordEvent("release(%d). original value: %d",decrement,refCnt + decrement);
  }
  if (refCnt < 0) {
    throw new IllegalStateException(String.format("ArrowBuf[%d] refCnt has gone negative. Buffer Info: %s",id,toVerboseString()));
  }
  return refCnt == 0;
}

@ Override public boolean release ( int decrement ) { if ( isEmpty ) { return false ; } if ( decrement < 1 ) { throw new IllegalStateException ( String . format ( "release(%d) argument is not positive. Buffer Info: %s" , decrement , toVerboseString ( ) ) ) ; } final int refCnt = ledger . decrement ( decrement ) ; if ( BaseAllocator . DEBUG ) { historicalLog . recordEvent ( "release(%d). original value: %d" , decrement , refCnt + decrement ) ; } if ( refCnt < 0 ) { throw new IllegalStateException ( String . format ( "ArrowBuf[%d] refCnt has gone negative. Buffer Info: %s" , id , toVerboseString ( ) ) ) ; } return refCnt == 0 ; }
release the provided number of reference counts .
