TypedArray


Purpose

The TypedArray object view types represent a view of the ArrayBuffer object that allows for indexing and manipulation. The length of each of these is fixed. Each of the typed array view types follows the same template. The typed arrays implementation is based on the Typed Array Khronos specification. The implementation has been limited, in order to maintain the system performance ratio, to the following use case scenarios:

  • reading data to the ArrayBuffer format and creating view/views to read its values. If data are written to a file as 32 Byte integers, they are read to the ArrayBuffer, then the Int32Array view is created and values are accessible with the usage of standard access array of the JavaScript notation. If data are written to a file as 8 Byte integers, then the Int8Array view is created. It is also possible to create two views in case when data are read in two different Byte formats.

  • reading data to a file with a usage of the array format. It is possible by creating an empty ArrayBuffer and one view on its basis. Data are inserted in this view with the usage of standard access array of the JavaScript notation, and then ArrayBuffer is written to a file.

Related topics

Overview
Legal notice | Copyright © 2015 and Confidential to Pegasystems Inc. All rights reserved. | Feedback
Advanced...