Interface IArrayBufferBasedMathNumber

Interface for math number types that are based on ArrayBuffer. This interface provides functionality to check if the underlying ArrayBuffer is the same as a given ArrayBuffer, which is useful for memory management and avoiding unnecessary data copying operations.

interface IArrayBufferBasedMathNumber {
    isTheSourceSame(arrayBuffer: ArrayBuffer): boolean;
}

Implemented by

Methods

  • Checks whether the underlying ArrayBuffer of this math number object is the same as the provided ArrayBuffer.

    Parameters

    • arrayBuffer: ArrayBuffer

      The ArrayBuffer to compare with the underlying buffer

    Returns boolean

    true if the ArrayBuffer is the same instance, false otherwise