UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

37 lines (36 loc) 1.8 kB
import { NumberArray } from "../../types/NumberArray"; import { FloatVector, SCRTDoubleVector, SCRTFloatVector, TSciChart } from "../../types/TSciChart"; import { SCRTDoubleVector as SCRTDoubleVector3D, SCRTFloatVector as SCRTFloatVector3D, TSciChart3D } from "../../types/TSciChart3D"; export declare const SIZEOF_NUMBER = 8; export declare const SIZEOF_FLOAT32 = 4; /** * Inserts the values from the source Js array into the destination wasm array (and resizes) at index destIndex * @param wasmContext * @param source * @param dest * @param destIndex */ export declare function insertDoubleVectorFromJsArray(wasmContext: TSciChart | TSciChart3D, source: NumberArray, dest: SCRTDoubleVector | SCRTDoubleVector3D, destIndex: number): void; /** * Copies the values from the source Js array into the destination wasm array (and resizes) at index destIndex * @param wasmContext * @param source * @param dest * @param destIndex */ export declare function memCopyFloat32(wasmContext: TSciChart | TSciChart3D, source: Float32Array, dest: SCRTFloatVector | FloatVector | SCRTFloatVector3D, destIndex: number): void; /** * Resizes the destinationVector by jsArray.length and copies the values into it * @param wasmContext * @param destinationVector * @param jsArray */ export declare function appendDoubleVectorFromJsArray(wasmContext: TSciChart | TSciChart3D, destinationVector: SCRTDoubleVector | SCRTDoubleVector3D, jsArray: NumberArray): void; /** * Resizes the destinationVector and copies the values into it * @param wasmContext * @param destinationVector * @param jsArray * @param experimentalMethod */ export declare function appendDoubleVectorFromBuffer(wasmContext: TSciChart, destinationVector: SCRTDoubleVector, jsArray: ArrayBuffer): void;