private int numCodedUnits(Channel chan){
  chan.fillMode=br.read(2);
  if (chan.fillMode == 0) {
    chan.numCodedVals=ctx.numQuantUnits;
  }
 else {
    chan.numCodedVals=br.read(5);
    if (chan.numCodedVals > ctx.numQuantUnits) {
      log.error(String.format("Invalid number of transmitted units"));
      return AT3P_ERROR;
    }
    if (chan.fillMode == 3) {
      chan.splitPoint=br.read(2) + (chan.chNum << 1) + 1;
    }
  }
  return 0;
}

private int numCodedUnits ( Channel chan ) { chan . fillMode = br . read ( 2 ) ; if ( chan . fillMode == 0 ) { chan . numCodedVals = ctx . numQuantUnits ; } else { chan . numCodedVals = br . read ( 5 ) ; if ( chan . numCodedVals > ctx . numQuantUnits ) { log . error ( String . format ( "Invalid number of transmitted units" ) ) ; return AT3P_ERROR ; } if ( chan . fillMode == 3 ) { chan . splitPoint = br . read ( 2 ) + ( chan . chNum << 1 ) + 1 ; } } return 0 ; }
decode number of coded quantization units .
