code: function Buffer(max, mode) {
    if (!(this instanceof Buffer)) {
      return new Buffer(max);
    }
  
    this.max = max;
    this.singleValueMode = this.max === 1;
  
    this.mode = mode;
  
    this.values = null;
  
    // Single item optimization
    this.singleValue = null; 
  }
docs: Ghetto Record implementation.