addBuffer()

Initializes an object that will be used to store indicator values

Return value

New buffer

Description

Used in the constructor. Stored in a property of the class

Example

// Initializing 3 objects MNKBufferOne, MNKBufferTwo, MNKBufferThree and assign them in the class property buffers
this.buffers = {
      MNKBufferOne : this.addBuffer(),
      MNKBufferTwo : this.addBuffer(),
      MNKBufferThree:this.addBuffer(),
};
// In methods onInit or onUpdate we get these objects by destructuring
const {MNKBufferOne, MNKBufferTwoб MNKBufferThree} = this.buffers;