code: function record(buffer, variable, recordDimension) {
    // variable type
    const type = types.str2num(variable.type);
    const width = variable.size ? variable.size / types.num2bytes(type) : 1;
  
    // size of the data
    // TODO streaming data
    var size = recordDimension.length;
  
    // iterates over the data
    var data = new Array(size);
    const step = recordDimension.recordStep;
  
    for (var i = 0; i < size; i++) {
      var currentOffset = buffer.offset;
      data[i] = types.readType(buffer, type, width);
      buffer.seek(currentOffset + step);
    }
  
    return data;
  }
docs: Read data for the given record variable
  @ignore
  @param {IOBuffer} buffer - Buffer for the file data
  @param {object} variable - Variable metadata
  @param {object} recordDimension - Record dimension metadata
  @return {Array} - Data of the element