src/types.js
function readNumber(size, bufferReader) {
  if (size !== 1) {
    var numbers = new Array(size);
    for (var i = 0; i < size; i++) {
      numbers[i] = bufferReader();
    }
    return numbers;
  } else {
    return bufferReader();
  }
}
function readNumber(size, bufferReader) {
  if (size !== 1) {
    var numbers = new Array(size);
    for (var i = 0; i < size; i++) {
      numbers[i] = bufferReader();
    }
    return numbers;
  } else {
    return bufferReader();
  }
}
function readNumber ( size , bufferReader ) { if ( size !== 1 ) { var numbers = new Array ( size ) ; for ( var i = 0 ; i < size ; i ++ ) { numbers [ i ] = bufferReader ( ) ; } return numbers ; } else { return bufferReader ( ) ; } }
Auxiliary function to read numeric data
@ignore
@param {number} size - Size of the element to read
@param {function} bufferReader - Function to read next value
@return {Array<number>|number}
Auxiliary function to read numeric data